- Timestamp:
- 03/31/11 18:23:02 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorClassification.cs
r5809 r5914 142 142 var model = new SupportVectorMachineModel(SVM.Training.Train(scaledProblem, parameter), rangeTransform, targetVariable, allowedInputVariables, problemData.ClassValues); 143 143 144 return new SupportVectorClassificationSolution(model, problemData);144 return new SupportVectorClassificationSolution(model, (IClassificationProblemData)problemData.Clone()); 145 145 } 146 146 #endregion -
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorRegression.cs
r5809 r5914 150 150 SVM.Problem scaledProblem = SVM.Scaling.Scale(rangeTransform, problem); 151 151 var model = new SupportVectorMachineModel(SVM.Training.Train(scaledProblem, parameter), rangeTransform, targetVariable, allowedInputVariables); 152 return new SupportVectorRegressionSolution(model, problemData);152 return new SupportVectorRegressionSolution(model, (IRegressionProblemData)problemData.Clone()); 153 153 } 154 154 #endregion
Note: See TracChangeset
for help on using the changeset viewer.