Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/05/19 11:14:32 (5 years ago)
Author:
gkronber
Message:

#2847: more changes for renaming the M5 plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Algorithms.DataAnalysis.DecisionTrees/3.4/LeafTypes/Leaf.cs

    r17080 r17081  
    3131namespace HeuristicLab.Algorithms.DataAnalysis {
    3232  [StorableType("58517042-5318-4087-B098-AC75F0208BA0")]
    33   [Item("M5Leaf", "A leaf type that uses regularized linear models with feature selection as leaf models.")]
    34   public sealed class M5Leaf : LeafBase {
     33  [Item("Leaf", "A leaf type that uses regularized linear models with feature selection as leaf models.")]
     34  public sealed class Leaf : LeafBase {
    3535    #region Constructors & Cloning
    3636    [StorableConstructor]
    37     private M5Leaf(StorableConstructorFlag _) : base(_) { }
    38     private M5Leaf(M5Leaf original, Cloner cloner) : base(original, cloner) { }
    39     public M5Leaf() { }
     37    private Leaf(StorableConstructorFlag _) : base(_) { }
     38    private Leaf(Leaf original, Cloner cloner) : base(original, cloner) { }
     39    public Leaf() { }
    4040    public override IDeepCloneable Clone(Cloner cloner) {
    41       return new M5Leaf(this, cloner);
     41      return new Leaf(this, cloner);
    4242    }
    4343    #endregion
     
    4848    }
    4949    public override IRegressionModel Build(IRegressionProblemData pd, IRandom random, CancellationToken cancellationToken, out int numberOfParameters) {
    50       if (pd.Dataset.Rows == 0) throw new ArgumentException("The number of training instances is too small to create an M5 leaf model");
     50      if (pd.Dataset.Rows == 0) throw new ArgumentException("The number of training instances is too small to create a leaf model");
    5151
    5252      if (pd.Dataset.Rows == 1)
Note: See TracChangeset for help on using the changeset viewer.