- Timestamp:
- 12/15/09 13:22:12 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling/3.2/VariableEvaluationImpactCalculator.cs
r2440 r2559 84 84 Dictionary<string, double> evaluationImpacts = new Dictionary<string, double>(); 85 85 Dataset dirtyDataset = (Dataset)dataset.Clone(); 86 IPredictor dirtyPredictor = (IPredictor)predictor.Clone(); 86 87 double[] referenceValues = predictor.Predict(dataset, start, end); 87 88 … … 100 101 mean = dataset.GetMean(variableName, start, end); 101 102 oldValues = dirtyDataset.ReplaceVariableValues(variableName, Enumerable.Repeat(mean, end - start), start, end); 102 newValues = predictor.Predict(dirtyDataset, start, end);103 newValues = dirtyPredictor.Predict(dirtyDataset, start, end); 103 104 evaluationImpacts[variableName] = 1 - CalculateVAF(referenceValues, newValues); 104 105 dirtyDataset.ReplaceVariableValues(variableName, oldValues, start, end);
Note: See TracChangeset
for help on using the changeset viewer.