Changeset 3933 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/SupportVectorRegression
- Timestamp:
- 06/21/10 13:21:14 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/SupportVectorRegression/SupportVectorRegressionSolution.cs
r3916 r3933 65 65 private Dataset CalculateSupportVectors() { 66 66 if (Model.Model.SupportVectorIndizes.Length == 0) 67 return new Dataset( );67 return new Dataset(new List<string>(),new double[0,0]); 68 68 69 Dataset dataset = new Dataset(ProblemData.Dataset.VariableNames, new double[Model.Model.SupportVectorCount, ProblemData.Dataset.Columns]);69 double[,] data = new double[Model.Model.SupportVectorIndizes.Length, ProblemData.Dataset.Columns]; 70 70 for (int i = 0; i < Model.Model.SupportVectorIndizes.Length; i++) { 71 71 for (int column = 0; column < ProblemData.Dataset.Columns; column++) 72 data set[i, column] = ProblemData.Dataset[Model.Model.SupportVectorIndizes[i], column];72 data[i, column] = ProblemData.Dataset[Model.Model.SupportVectorIndizes[i], column]; 73 73 } 74 return dataset;74 return new Dataset(ProblemData.Dataset.VariableNames, data); 75 75 } 76 76
Note: See TracChangeset
for help on using the changeset viewer.