- Timestamp:
- 07/05/19 11:14:32 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Algorithms.DataAnalysis.DecisionTrees/3.4/LeafTypes/Leaf.cs
r17080 r17081 31 31 namespace HeuristicLab.Algorithms.DataAnalysis { 32 32 [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 { 35 35 #region Constructors & Cloning 36 36 [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() { } 40 40 public override IDeepCloneable Clone(Cloner cloner) { 41 return new M5Leaf(this, cloner);41 return new Leaf(this, cloner); 42 42 } 43 43 #endregion … … 48 48 } 49 49 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 a n M5leaf model");50 if (pd.Dataset.Rows == 0) throw new ArgumentException("The number of training instances is too small to create a leaf model"); 51 51 52 52 if (pd.Dataset.Rows == 1)
Note: See TracChangeset
for help on using the changeset viewer.