Changeset 15958 for branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis
- Timestamp:
- 06/13/18 15:28:39 (7 years ago)
- Location:
- branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Matlab
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Matlab/Api/Types/MLDoubleArray.cs
r15926 r15958 20 20 _dataHeaders = new string[Data.GetLength(1)]; 21 21 for (int i = 0; i < _dataHeaders.Length; i++) { 22 _dataHeaders[i] = string.Format("{0} :{1}", name, i);22 _dataHeaders[i] = string.Format("{0}_{1}", name, i); 23 23 } 24 24 } -
branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Matlab/Api/Types/MLTimeseries.cs
r15926 r15958 97 97 98 98 for (int i = 0; i < valueColumns; i++) { 99 _dataHeaders[i] = string.Format("{0} :{1}", Name, i);99 _dataHeaders[i] = string.Format("{0}_{1}", Name, i); 100 100 } 101 101 -
branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Matlab/RegressionMatlabInstanceProvider.cs
r15926 r15958 28 28 using HeuristicLab.Common; 29 29 using HeuristicLab.Problems.DataAnalysis; 30 using HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab.Api;31 30 using HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab.Api.Types; 31 using HeuristicLab.Random; 32 32 33 33 namespace HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab { … … 67 67 68 68 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 69 76 public IRegressionProblemData ImportData(string path, RegressionMatlabImportType type, IEnumerable<MLVariableInfo> variableNames) { 70 var dataset = type.Values;77 var dataset = GetValues(type); 71 78 var targetVar = type.TargetVariable; 72 79
Note: See TracChangeset
for help on using the changeset viewer.