Changeset 16852 for branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/M5Regression/Splitting
- Timestamp:
- 04/19/19 15:45:45 (6 years ago)
- Location:
- branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/M5Regression/Splitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/M5Regression/Splitting/M5Splitter.cs
r16847 r16852 55 55 protected override void AttributeSplit(IReadOnlyList<double> attValues, IReadOnlyList<double> targetValues, int minLeafSize, out int position, out double maxImpurity, out double splitValue) { 56 56 position = 0; 57 maxImpurity = -1E20;57 maxImpurity = double.NegativeInfinity; 58 58 splitValue = 0.0; 59 59 var length = targetValues.Count; -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/M5Regression/Splitting/SplitterBase.cs
r16847 r16852 33 33 [Item("SplitterBase", "Abstract base class for splitters")] 34 34 public abstract class SplitterBase : ParameterizedNamedItem, ISplitter { 35 public const string SplittingStateVariableName = " RuleSetState";35 public const string SplittingStateVariableName = "SplittingState"; 36 36 37 37 #region Constructors & Cloning … … 80 80 81 81 protected virtual bool DecideSplit(IRegressionProblemData splitData, int minLeafSize, out string splitAttr, out double splitValue) { 82 var bestPos = 0;82 var bestPos = -1; 83 83 var bestImpurity = double.MinValue; 84 84 var bestSplitValue = 0.0;
Note: See TracChangeset
for help on using the changeset viewer.