Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/13/18 15:28:39 (6 years ago)
Author:
rhanghof
Message:

#2913:

  • Enhancements on the RegressionMatlabImportDialog
  • Added a new text formater SymbolicDataAnalysisExpressionMATLABFunctionFormatter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Matlab/RegressionMatlabInstanceProvider.cs

    r15926 r15958  
    2828using HeuristicLab.Common;
    2929using HeuristicLab.Problems.DataAnalysis;
    30 using HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab.Api;
    3130using HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab.Api.Types;
     31using HeuristicLab.Random;
    3232
    3333namespace HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab {
     
    6767
    6868
     69    private Dataset GetValues(RegressionMatlabImportType type) {
     70      if (type.Shuffle) {
     71        type.Values = type.Values.Shuffle(new MersenneTwister());
     72      }
     73      return type.Values;
     74    }
     75
    6976    public IRegressionProblemData ImportData(string path, RegressionMatlabImportType type, IEnumerable<MLVariableInfo> variableNames) {
    70       var dataset = type.Values;
     77      var dataset = GetValues(type);
    7178      var targetVar = type.TargetVariable;
    7279
Note: See TracChangeset for help on using the changeset viewer.