Changeset 15816 for branches/2904_CalculateImpacts/3.4/Implementation
- Timestamp:
- 02/26/18 14:13:32 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2904_CalculateImpacts/3.4/Implementation/Regression/RegressionSolutionVariableImpactsCalculator.cs
r15815 r15816 172 172 public static double CalculateImpact(string variableName, 173 173 IRegressionSolution solution, 174 IEnumerable<int> rows, 175 IEnumerable<double> targetValues, 176 double originalR2, 174 177 DataPartitionEnum data = DataPartitionEnum.Training, 175 178 ReplacementMethodEnum replacementMethod = ReplacementMethodEnum.Median, 176 FactorReplacementMethodEnum factorReplacementMethod = FactorReplacementMethodEnum.Best, 177 IEnumerable<int> rows = null, 178 IEnumerable<double> targetValues = null, 179 double originalR2 = -1) { 179 FactorReplacementMethodEnum factorReplacementMethod = FactorReplacementMethodEnum.Best) { 180 180 181 181 double impact = 0; … … 219 219 if (progressCallback((double)curIdx / count, string.Format("Calculating impact for variable {0} ({1} of {2})", inputVariable, curIdx, count))) { return null; } 220 220 } 221 impacts[inputVariable] = CalculateImpact(inputVariable, solution, data, replacementMethod, factorReplacementMethod, rows, targetValues, originalR2);221 impacts[inputVariable] = CalculateImpact(inputVariable, solution, rows, targetValues, originalR2, data, replacementMethod, factorReplacementMethod); 222 222 } 223 223
Note: See TracChangeset
for help on using the changeset viewer.