Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12485


Ignore:
Timestamp:
06/20/15 08:14:02 (9 years ago)
Author:
gkronber
Message:

#2374 made RegressionSolution and ClassificationSolution non-abstract

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

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolution.cs

    r12012 r12485  
    3030  /// </summary>
    3131  [StorableClass]
    32   public abstract class ClassificationSolution : ClassificationSolutionBase {
     32  public class ClassificationSolution : ClassificationSolutionBase {
    3333    protected readonly Dictionary<int, double> evaluationCache;
    3434
     
    4646      evaluationCache = new Dictionary<int, double>(problemData.Dataset.Rows);
    4747      CalculateClassificationResults();
     48    }
     49
     50    public override IDeepCloneable Clone(Cloner cloner) {
     51      return new ClassificationSolution(this, cloner);
    4852    }
    4953
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolution.cs

    r12012 r12485  
    3030  /// </summary>
    3131  [StorableClass]
    32   public abstract class RegressionSolution : RegressionSolutionBase {
     32  public class RegressionSolution : RegressionSolutionBase {
    3333    protected readonly Dictionary<int, double> evaluationCache;
    3434
     
    4242      evaluationCache = new Dictionary<int, double>(original.evaluationCache);
    4343    }
    44     protected RegressionSolution(IRegressionModel model, IRegressionProblemData problemData)
     44    public RegressionSolution(IRegressionModel model, IRegressionProblemData problemData)
    4545      : base(model, problemData) {
    4646      evaluationCache = new Dictionary<int, double>(problemData.Dataset.Rows);
     
    4848    }
    4949
     50    public override IDeepCloneable Clone(Cloner cloner) {
     51      return new RegressionSolution(this, cloner);
     52    }
    5053
    5154    public override IEnumerable<double> EstimatedValues {
Note: See TracChangeset for help on using the changeset viewer.