Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/02/10 19:10:35 (14 years ago)
Author:
gkronber
Message:

Improved code for analyzers for SVR and symbolic regression. #1009

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Dataset.cs

    r3839 r3892  
    231231    public override IDeepCloneable Clone(Cloner cloner) {
    232232      Dataset clone = (Dataset)base.Clone(cloner);
    233       clone.data = data;
     233      clone.data = (double[,])data.Clone();
    234234      clone.variableNames = (string[])variableNames.Clone();
    235235      return clone;
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/SupportVectorMachine/ParameterAdjustmentProblem/SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer.cs

    r3884 r3892  
    8181      get { return KernelTypeParameter.Value; }
    8282    }
    83     public ILookupParameter<SupportVectorMachineModel> BestSolutionParameter {
    84       get { return (ILookupParameter<SupportVectorMachineModel>)Parameters[BestSolutionParameterName]; }
     83    public ILookupParameter<DataAnalysisSolution> BestSolutionParameter {
     84      get { return (ILookupParameter<DataAnalysisSolution>)Parameters[BestSolutionParameterName]; }
    8585    }
    8686    public ILookupParameter<DoubleValue> BestSolutionQualityParameter {
     
    102102      Parameters.Add(new ValueLookupParameter<StringValue>(KernelTypeParameterName, "The kernel type to use for the SVM.", rbfKernelType));
    103103      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>(QualityParameterName, "The cross validation quality reached with the given parameters."));
    104       Parameters.Add(new LookupParameter<SupportVectorMachineModel>(BestSolutionParameterName, "The best support vector solution."));
     104      Parameters.Add(new LookupParameter<DataAnalysisSolution>(BestSolutionParameterName, "The best support vector solution."));
    105105      Parameters.Add(new LookupParameter<DoubleValue>(BestSolutionQualityParameterName, "The quality of the best support vector model."));
    106106      Parameters.Add(new LookupParameter<ResultCollection>(ResultsParameterName, "The result collection where the best support vector solution should be stored."));
     
    124124      DataAnalysisProblemData problemData = DataAnalysisProblemData;
    125125
    126       SupportVectorMachineModel bestModel = BestSolutionParameter.ActualValue;
     126      DataAnalysisSolution bestSolution = BestSolutionParameter.ActualValue;
    127127      if (bestModel == null) {
    128128        bestModel = SupportVectorMachineModelCreator.TrainModel(DataAnalysisProblemData,
Note: See TracChangeset for help on using the changeset viewer.