Changeset 6740 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionThresholdView.cs
- Timestamp:
- 09/12/11 13:48:31 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionThresholdView.cs
r6729 r6740 135 135 private void FillSeriesWithDataPoints(Series series) { 136 136 List<double> estimatedValues = Content.EstimatedValues.ToList(); 137 var targetValues = Content.ProblemData.Dataset.GetDoubleValues(Content.ProblemData.TargetVariable).ToList(); 138 137 139 foreach (int row in Content.ProblemData.TrainingIndizes) { 138 140 double estimatedValue = estimatedValues[row]; 139 double targetValue = Content.ProblemData.Dataset[Content.ProblemData.TargetVariable,row];141 double targetValue = targetValues[row]; 140 142 if (targetValue.IsAlmost((double)series.Tag)) { 141 143 double jitterValue = random.NextDouble() * 2.0 - 1.0; … … 150 152 foreach (int row in Content.ProblemData.TestIndizes) { 151 153 double estimatedValue = estimatedValues[row]; 152 double targetValue = Content.ProblemData.Dataset[Content.ProblemData.TargetVariable,row];153 if (targetValue == (double)series.Tag) {154 double targetValue = targetValues[row]; 155 if (targetValue.IsAlmost((double)series.Tag)) { 154 156 double jitterValue = random.NextDouble() * 2.0 - 1.0; 155 157 DataPoint point = new DataPoint();
Note: See TracChangeset
for help on using the changeset viewer.