Changeset 155 for trunk/sources/HeuristicLab.StructureIdentification/Evaluation/VarianceAccountedForEvaluator.cs
- Timestamp:
- 04/22/08 18:05:14 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/Evaluation/VarianceAccountedForEvaluator.cs
r128 r155 34 34 public override string Description { 35 35 get { 36 return @"Evaluates ' OperatorTree' for all samples of 'DataSet' and calculates36 return @"Evaluates 'FunctionTree' for all samples of 'DataSet' and calculates 37 37 the variance-accounted-for quality measure for the estimated values vs. the real values of 'TargetVariable'. 38 38 … … 53 53 54 54 55 public override double Evaluate(IScope scope, IFunction function, int targetVariable, Dataset dataset) {55 public override double Evaluate(IScope scope, IFunctionTree functionTree, int targetVariable, Dataset dataset) { 56 56 double[] errors = new double[dataset.Rows]; 57 57 double[] originalTargetVariableValues = new double[dataset.Rows]; 58 58 double targetMean = dataset.GetMean(targetVariable); 59 59 for(int sample = 0; sample < dataset.Rows; sample++) { 60 double estimated = function .Evaluate(dataset, sample);60 double estimated = functionTree.Evaluate(dataset, sample); 61 61 double original = dataset.GetValue(sample, targetVariable); 62 62 if(!double.IsNaN(original) && !double.IsInfinity(original)) {
Note: See TracChangeset
for help on using the changeset viewer.