Changeset 5275 for branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/SupportVectorMachine/ParameterAdjustmentProblem/SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer.cs
- Timestamp:
- 01/11/11 15:03:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/SupportVectorMachine/ParameterAdjustmentProblem/SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer.cs
r4068 r5275 30 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 31 using HeuristicLab.Problems.DataAnalysis.Evaluators; 32 using HeuristicLab.Common; 32 33 33 34 namespace HeuristicLab.Problems.DataAnalysis.SupportVectorMachine.ParameterAdjustmentProblem { … … 89 90 90 91 #endregion 91 92 [StorableConstructor] 93 protected SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer(bool deserializing) : base(deserializing) { } 94 protected SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer(SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer original, Cloner cloner) 95 : base(original, cloner) { 96 } 92 97 public SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer() 93 98 : base() { … … 103 108 Parameters.Add(new LookupParameter<ResultCollection>(ResultsParameterName, "The result collection where the best support vector solution should be stored.")); 104 109 } 105 110 public override IDeepCloneable Clone(Cloner cloner) { 111 return new SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer(this, cloner); 112 } 106 113 public override IOperation Apply() { 107 114 var points = ParameterVectorParameter.ActualValue; … … 124 131 if (bestModel == null) { 125 132 bestModel = SupportVectorMachineModelCreator.TrainModel(DataAnalysisProblemData, 126 DataAnalysisProblemData.Training SamplesStart.Value, DataAnalysisProblemData.TrainingSamplesEnd.Value,133 DataAnalysisProblemData.TrainingIndizes, 127 134 SvmType.Value, KernelType.Value, cost, nu, gamma, 0.0); 128 135 BestSolutionParameter.ActualValue = bestModel; … … 153 160 if (BestSolutionQualityParameter.ActualValue.Value > bestQuality) { 154 161 bestModel = SupportVectorMachineModelCreator.TrainModel(DataAnalysisProblemData, 155 DataAnalysisProblemData.Training SamplesStart.Value, DataAnalysisProblemData.TrainingSamplesEnd.Value,162 DataAnalysisProblemData.TrainingIndizes, 156 163 SvmType.Value, KernelType.Value, cost, nu, gamma, 0.0); 157 164 BestSolutionParameter.ActualValue = bestModel;
Note: See TracChangeset
for help on using the changeset viewer.