Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/31/11 18:23:02 (13 years ago)
Author:
mkommend
Message:

#1418: Changed DataAnalysisSolutions and -Models and updated GenerateRowsToEvaluate method in SymbolicDataAnalysisEvaluator.

Location:
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorClassification.cs

    r5809 r5914  
    142142      var model = new SupportVectorMachineModel(SVM.Training.Train(scaledProblem, parameter), rangeTransform, targetVariable, allowedInputVariables, problemData.ClassValues);
    143143
    144       return new SupportVectorClassificationSolution(model, problemData);
     144      return new SupportVectorClassificationSolution(model, (IClassificationProblemData)problemData.Clone());
    145145    }
    146146    #endregion
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorRegression.cs

    r5809 r5914  
    150150      SVM.Problem scaledProblem = SVM.Scaling.Scale(rangeTransform, problem);
    151151      var model = new SupportVectorMachineModel(SVM.Training.Train(scaledProblem, parameter), rangeTransform, targetVariable, allowedInputVariables);
    152       return new SupportVectorRegressionSolution(model, problemData);
     152      return new SupportVectorRegressionSolution(model, (IRegressionProblemData)problemData.Clone());
    153153    }
    154154    #endregion
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/kMeans/KMeansClustering.cs

    r5809 r5914  
    9595      if (info != 1) throw new ArgumentException("Error in calculation of k-Means clustering solution");
    9696
    97       KMeansClusteringSolution solution = new KMeansClusteringSolution(new KMeansClusteringModel(centers, allowedInputVariables), problemData);
     97      KMeansClusteringSolution solution = new KMeansClusteringSolution(new KMeansClusteringModel(centers, allowedInputVariables), (IClusteringProblemData)problemData.Clone());
    9898      return solution;
    9999    }
Note: See TracChangeset for help on using the changeset viewer.