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.Symbolic.Views/3.4/SymbolicDataAnalysisSolutionResponseFunctionView.cs

    r6656 r6740  
    2727using HeuristicLab.Common;
    2828using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views;
     29using HeuristicLab.MainForm;
    3030using HeuristicLab.MainForm.WindowsForms;
    31 using System.Windows.Forms.DataVisualization.Charting;
    32 using HeuristicLab.MainForm;
    3331
    3432namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views {
     
    8886        select varNode.VariableName)
    8987         .Distinct()
    90          .OrderBy(x=>x)
     88         .OrderBy(x => x)
    9189         .ToList();
    9290
    9391        medianValues.Clear();
    9492        foreach (var variableName in referencedVariables) {
    95           medianValues.Add(variableName, Content.ProblemData.Dataset.GetEnumeratedVariableValues(variableName).Median());
     93          medianValues.Add(variableName, Content.ProblemData.Dataset.GetDoubleValues(variableName).Median());
    9694        }
    9795
     
    107105      foreach (var variableName in variableNames) {
    108106        var variableTrackbar = new VariableTrackbar(variableName,
    109                                                     Content.ProblemData.Dataset.GetEnumeratedVariableValues(variableName));
     107                                                    Content.ProblemData.Dataset.GetDoubleValues(variableName));
    110108        variableTrackbar.Size = new Size(variableTrackbar.Size.Width, flowLayoutPanel.Size.Height - 23);
    111109        variableTrackbar.ValueChanged += TrackBarValueChanged;
     
    132130        .Except(new string[] { freeVariable });
    133131
    134       var freeVariableValues = Content.ProblemData.Dataset.GetEnumeratedVariableValues(freeVariable, Content.ProblemData.TrainingIndizes).ToArray();
     132      var freeVariableValues = Content.ProblemData.Dataset.GetDoubleValues(freeVariable, Content.ProblemData.TrainingIndizes).ToArray();
    135133      var responseValues = Content.Model.Interpreter.GetSymbolicExpressionTreeValues(clonedTree,
    136134                                                                              Content.ProblemData.Dataset,
Note: See TracChangeset for help on using the changeset viewer.