public class GiniStatistic
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int[][][] |
_columnDists
Column distributions: column x arity x classes
Remembers the number of rows of the given column index, encodedValue, class.
|
protected float[][][] |
_columnDistsRegression |
protected int[] |
_features |
protected java.util.Random |
_random |
Constructor and Description |
---|
GiniStatistic(Data data,
int features,
long seed,
int exclusiveSplitLimit) |
Modifier and Type | Method and Description |
---|---|
protected hex.singlenoderf.Statistic.Split |
eqSplit(int colIndex,
Data d,
float[] dist,
float distWeight,
java.util.Random rand) |
protected hex.singlenoderf.Statistic.Split |
eqSplit(int colIndex,
Data d,
int[] dist,
int distWeight,
java.util.Random _) |
protected hex.singlenoderf.Statistic.Split |
ltSplit(int colIndex,
Data d,
float[] dist,
float distWeight,
java.util.Random rand) |
protected hex.singlenoderf.Statistic.Split |
ltSplit(int col,
Data d,
int[] dist,
int distWeight,
java.util.Random _)
Returns the best split for a given column
|
protected final int[][][] _columnDists
protected final int[] _features
protected java.util.Random _random
protected final float[][][] _columnDistsRegression
public GiniStatistic(Data data, int features, long seed, int exclusiveSplitLimit)
protected hex.singlenoderf.Statistic.Split ltSplit(int col, Data d, int[] dist, int distWeight, java.util.Random _)
protected hex.singlenoderf.Statistic.Split eqSplit(int colIndex, Data d, int[] dist, int distWeight, java.util.Random _)
protected hex.singlenoderf.Statistic.Split ltSplit(int colIndex, Data d, float[] dist, float distWeight, java.util.Random rand)
protected hex.singlenoderf.Statistic.Split eqSplit(int colIndex, Data d, float[] dist, float distWeight, java.util.Random rand)