- Timestamp:
- 09/15/09 14:07:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling/3.2/SimpleAccuracyEvaluator.cs
r2351 r2357 51 51 52 52 for (int sample = 0; sample < nSamples; sample++) { 53 double est = values[sample, 0];54 double origClass = values[sample, 1];53 double est = values[sample, ESTIMATION_INDEX]; 54 double origClass = values[sample, ORIGINAL_INDEX]; 55 55 double estClass = double.NaN; 56 56 // if estimation is lower than the smallest threshold value -> estimated class is the lower class … … 75 75 int n = values.GetLength(0); 76 76 double[] original = new double[n]; 77 for (int i = 0; i < n; i++) original[i] = values[i, 1];77 for (int i = 0; i < n; i++) original[i] = values[i, ORIGINAL_INDEX]; 78 78 return original.OrderBy(x => x).Distinct().ToArray(); 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.