Ignore:
Timestamp:
04/19/19 15:45:45 (8 months ago)
Author:
gkronber
Message:

#2847: fixed some issues that produced errors when testing

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  
    5555    protected override void AttributeSplit(IReadOnlyList<double> attValues, IReadOnlyList<double> targetValues, int minLeafSize, out int position, out double maxImpurity, out double splitValue) {
    5656      position = 0;
    57       maxImpurity = -1E20;
     57      maxImpurity = double.NegativeInfinity;
    5858      splitValue = 0.0;
    5959      var length = targetValues.Count;
  • branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/M5Regression/Splitting/SplitterBase.cs

    r16847 r16852  
    3333  [Item("SplitterBase", "Abstract base class for splitters")]
    3434  public abstract class SplitterBase : ParameterizedNamedItem, ISplitter {
    35     public const string SplittingStateVariableName = "RuleSetState";
     35    public const string SplittingStateVariableName = "SplittingState";
    3636
    3737    #region Constructors & Cloning
     
    8080
    8181    protected virtual bool DecideSplit(IRegressionProblemData splitData, int minLeafSize, out string splitAttr, out double splitValue) {
    82       var bestPos = 0;
     82      var bestPos = -1;
    8383      var bestImpurity = double.MinValue;
    8484      var bestSplitValue = 0.0;
Note: See TracChangeset for help on using the changeset viewer.