- Timestamp:
- 09/14/09 10:08:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorCreator.cs
r2165 r2347 42 42 AddVariableInfo(new VariableInfo("SamplesStart", "Start index of samples in dataset to evaluate", typeof(IntData), VariableKind.In)); 43 43 AddVariableInfo(new VariableInfo("SamplesEnd", "End index of samples in dataset to evaluate", typeof(IntData), VariableKind.In)); 44 AddVariableInfo(new VariableInfo("MaxTimeOffset", "Maximal time offset for time-series prognosis", typeof(IntData), VariableKind.In)); 45 AddVariableInfo(new VariableInfo("MinTimeOffset", "Minimal time offset for time-series prognosis", typeof(IntData), VariableKind.In)); 44 46 45 47 //SVM parameters … … 69 71 int start = GetVariableValue<IntData>("SamplesStart", scope, true).Data; 70 72 int end = GetVariableValue<IntData>("SamplesEnd", scope, true).Data; 71 73 int maxTimeOffset = GetVariableValue<IntData>("MaxTimeOffset", scope, true).Data; 74 int minTimeOffset = GetVariableValue<IntData>("MinTimeOffset", scope, true).Data; 72 75 string svmType = GetVariableValue<StringData>("SVMType", scope, true).Data; 73 76 string svmKernelType = GetVariableValue<StringData>("SVMKernelType", scope, true).Data; … … 81 84 parameter.Gamma = GetVariableValue<DoubleData>("SVMGamma", scope, true).Data; 82 85 83 SVM.Problem problem = SVMHelper.CreateSVMProblem(dataset, targetVariable, start, end );86 SVM.Problem problem = SVMHelper.CreateSVMProblem(dataset, targetVariable, start, end, minTimeOffset, maxTimeOffset); 84 87 SVM.RangeTransform rangeTransform = SVM.Scaling.DetermineRange(problem); 85 88 SVM.Problem scaledProblem = SVM.Scaling.Scale(problem, rangeTransform);
Note: See TracChangeset
for help on using the changeset viewer.