Changeset 2559 for trunk/sources
- Timestamp:
- 12/15/09 13:22:12 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Modeling/3.2
- Files:
-
- 2 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); -
trunk/sources/HeuristicLab.Modeling/3.2/VariableQualityImpactCalculator.cs
r2440 r2559 83 83 Dictionary<string, double> evaluationImpacts = new Dictionary<string, double>(); 84 84 Dataset dirtyDataset = (Dataset)dataset.Clone(); 85 IPredictor dirtyPredictor = (IPredictor)predictor.Clone(); 85 86 86 87 double[] predictedValues = predictor.Predict(dataset, start, end); … … 104 105 mean = dataset.GetMean(variableName, start, end); 105 106 oldValues = dirtyDataset.ReplaceVariableValues(variableName, Enumerable.Repeat(mean, end - start), start, end); 106 predictedValues = predictor.Predict(dirtyDataset, start, end);107 predictedValues = dirtyPredictor.Predict(dirtyDataset, start, end); 107 108 newMSE = CalculateMSE(predictedValues, targetValues); 108 109 evaluationImpacts[variableName] = newMSE / oldMSE;
Note: See TracChangeset
for help on using the changeset viewer.