Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/12/11 13:48:31 (13 years ago)
Author:
mkommend
Message:

#1597, #1609, #1640:

  • Corrected TableFileParser to handle empty rows correctly.
  • Refactored DataSet to store values in List<List> instead of a two-dimensional array.
  • Enable importing and storing string and datetime values.
  • Changed data access methods in dataset and adapted all concerning classes.
  • Changed interpreter to store the variable values for all rows during the compilation step.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionThresholdView.cs

    r6729 r6740  
    135135    private void FillSeriesWithDataPoints(Series series) {
    136136      List<double> estimatedValues = Content.EstimatedValues.ToList();
     137      var targetValues = Content.ProblemData.Dataset.GetDoubleValues(Content.ProblemData.TargetVariable).ToList();
     138
    137139      foreach (int row in Content.ProblemData.TrainingIndizes) {
    138140        double estimatedValue = estimatedValues[row];
    139         double targetValue = Content.ProblemData.Dataset[Content.ProblemData.TargetVariable, row];
     141        double targetValue = targetValues[row];
    140142        if (targetValue.IsAlmost((double)series.Tag)) {
    141143          double jitterValue = random.NextDouble() * 2.0 - 1.0;
     
    150152      foreach (int row in Content.ProblemData.TestIndizes) {
    151153        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)) {
    154156          double jitterValue = random.NextDouble() * 2.0 - 1.0;
    155157          DataPoint point = new DataPoint();
Note: See TracChangeset for help on using the changeset viewer.