public class Bin
extends Object
implements scala.Product, scala.Serializable
For a continuous feature, the bin is determined by a low and a high split, where an example with featureValue falls into the bin s.t. lowSplit.threshold < featureValue <= highSplit.threshold.
For ordered categorical features, there is a 1-1-1 correspondence between bins, splits, and feature values. The bin is determined by category/feature value. However, the bins are not necessarily ordered by feature value; they are ordered using impurity.
For unordered categorical features, there is a 1-1 correspondence between bins, splits, where bins and splits correspond to subsets of feature values (in highSplit.categories). An unordered feature with k categories uses (1 << k - 1) - 1 bins, corresponding to all partitionings of categories into 2 disjoint, non-empty sets.
Constructor and Description |
---|
Bin(Split lowSplit,
Split highSplit,
scala.Enumeration.Value featureType,
double category) |
Modifier and Type | Method and Description |
---|---|
double |
category() |
scala.Enumeration.Value |
featureType() |
Split |
highSplit() |
Split |
lowSplit() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait