Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/11/11 15:03:46 (13 years ago)
Author:
gkronber
Message:

Merged changes from trunk to data analysis exploration branch and added fractional distance metric evaluator. #1142

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/SupportVectorMachine/ParameterAdjustmentProblem/SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer.cs

    r4068 r5275  
    3030using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3131using HeuristicLab.Problems.DataAnalysis.Evaluators;
     32using HeuristicLab.Common;
    3233
    3334namespace HeuristicLab.Problems.DataAnalysis.SupportVectorMachine.ParameterAdjustmentProblem {
     
    8990
    9091    #endregion
    91 
     92    [StorableConstructor]
     93    protected SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer(bool deserializing) : base(deserializing) { }
     94    protected SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer(SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer original, Cloner cloner)
     95      : base(original, cloner) {
     96    }
    9297    public SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer()
    9398      : base() {
     
    103108      Parameters.Add(new LookupParameter<ResultCollection>(ResultsParameterName, "The result collection where the best support vector solution should be stored."));
    104109    }
    105 
     110    public override IDeepCloneable Clone(Cloner cloner) {
     111      return new SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer(this, cloner);
     112    }
    106113    public override IOperation Apply() {
    107114      var points = ParameterVectorParameter.ActualValue;
     
    124131      if (bestModel == null) {
    125132        bestModel = SupportVectorMachineModelCreator.TrainModel(DataAnalysisProblemData,
    126           DataAnalysisProblemData.TrainingSamplesStart.Value, DataAnalysisProblemData.TrainingSamplesEnd.Value,
     133          DataAnalysisProblemData.TrainingIndizes,
    127134          SvmType.Value, KernelType.Value, cost, nu, gamma, 0.0);
    128135        BestSolutionParameter.ActualValue = bestModel;
     
    153160        if (BestSolutionQualityParameter.ActualValue.Value > bestQuality) {
    154161          bestModel = SupportVectorMachineModelCreator.TrainModel(DataAnalysisProblemData,
    155             DataAnalysisProblemData.TrainingSamplesStart.Value, DataAnalysisProblemData.TrainingSamplesEnd.Value,
     162            DataAnalysisProblemData.TrainingIndizes,
    156163            SvmType.Value, KernelType.Value, cost, nu, gamma, 0.0);
    157164          BestSolutionParameter.ActualValue = bestModel;
Note: See TracChangeset for help on using the changeset viewer.