Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6592


Ignore:
Timestamp:
07/25/11 17:43:39 (13 years ago)
Author:
mkommend
Message:

#1600: Changed ensemble solutions to sealed classed.

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/ClassificationEnsembleSolution.cs

    r6590 r6592  
    3535  [Item("Classification Ensemble Solution", "A classification solution that contains an ensemble of multiple classification models")]
    3636  // [Creatable("Data Analysis")]
    37   public class ClassificationEnsembleSolution : ClassificationSolution, IClassificationEnsembleSolution {
     37  public sealed class ClassificationEnsembleSolution : ClassificationSolution, IClassificationEnsembleSolution {
    3838
    3939    public new IClassificationEnsembleModel Model {
     
    4949
    5050    [StorableConstructor]
    51     protected ClassificationEnsembleSolution(bool deserializing) : base(deserializing) { }
    52     protected ClassificationEnsembleSolution(ClassificationEnsembleSolution original, Cloner cloner)
     51    private ClassificationEnsembleSolution(bool deserializing) : base(deserializing) { }
     52    private ClassificationEnsembleSolution(ClassificationEnsembleSolution original, Cloner cloner)
    5353      : base(original, cloner) {
    5454      trainingPartitions = new Dictionary<IClassificationModel, IntRange>();
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleSolution.cs

    r6590 r6592  
    3535  [Item("Regression Ensemble Solution", "A regression solution that contains an ensemble of multiple regression models")]
    3636  // [Creatable("Data Analysis")]
    37   public class RegressionEnsembleSolution : RegressionSolution, IRegressionEnsembleSolution {
     37  public sealed class RegressionEnsembleSolution : RegressionSolution, IRegressionEnsembleSolution {
    3838    public new IRegressionEnsembleModel Model {
    3939      get { return (IRegressionEnsembleModel)base.Model; }
     
    4646
    4747    [StorableConstructor]
    48     protected RegressionEnsembleSolution(bool deserializing) : base(deserializing) { }
    49     protected RegressionEnsembleSolution(RegressionEnsembleSolution original, Cloner cloner)
     48    private RegressionEnsembleSolution(bool deserializing) : base(deserializing) { }
     49    private RegressionEnsembleSolution(RegressionEnsembleSolution original, Cloner cloner)
    5050      : base(original, cloner) {
    5151      trainingPartitions = new Dictionary<IRegressionModel, IntRange>();
Note: See TracChangeset for help on using the changeset viewer.