Changeset 2036 for trunk/sources/HeuristicLab.SupportVectorMachines
- Timestamp:
- 06/09/09 14:38:46 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.SupportVectorMachines/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorCreator.cs
r1906 r2036 53 53 AddVariableInfo(new VariableInfo("SVMGamma", "Gamma parameter in kernel function", typeof(DoubleData), VariableKind.In)); 54 54 AddVariableInfo(new VariableInfo("SVMModel", "Represent the model learned by the SVM", typeof(SVMModel), VariableKind.New | VariableKind.Out)); 55 // AddVariableInfo(new VariableInfo("SVMRangeTransform", "The applied transformation during the learning the model", typeof(SVMRangeTransform), VariableKind.New | VariableKind.Out));56 55 } 57 56 … … 95 94 modelData.RangeTransform = rangeTransform; 96 95 scope.AddVariable(new Variable(scope.TranslateName("SVMModel"), modelData)); 97 //SVMRangeTransform rangeTransformData = new SVMRangeTransform();98 //rangeTransformData.Data = rangeTransform;99 //scope.AddVariable(new Variable(scope.TranslateName("SVMRangeTransform"), rangeTransformData));100 96 return null; 101 97 } else { -
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorEvaluator.cs
r1906 r2036 41 41 42 42 AddVariableInfo(new VariableInfo("SVMModel", "Represent the model learned by the SVM", typeof(SVMModel), VariableKind.In)); 43 // AddVariableInfo(new VariableInfo("SVMRangeTransform", "The applied transformation during the learning the model", typeof(SVMRangeTransform), VariableKind.In));44 45 43 AddVariableInfo(new VariableInfo("Values", "Target vs predicted values", typeof(DoubleMatrixData), VariableKind.New | VariableKind.Out)); 46 44 } … … 55 53 56 54 SVMModel modelData = GetVariableValue<SVMModel>("SVMModel", scope, true); 57 // SVM.RangeTransform rangeTransform = GetVariableValue<SVMRangeTransform>("SVMRangeTransform", scope, true).Data;58 59 55 SVM.Problem problem = SVMHelper.CreateSVMProblem(dataset, allowedFeatures, targetVariable, start, end); 60 56 SVM.Problem scaledProblem = SVM.Scaling.Scale(problem, modelData.RangeTransform);
Note: See TracChangeset
for help on using the changeset viewer.