All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hex.genmodel.algos.tree.NaSplitDir Maven / Gradle / Ivy

There is a newer version: 3.46.0.5
Show newest version
package hex.genmodel.algos.tree;

/**
 * Copy of `hex.tree.DHistogram.NASplitDir` in package `h2o-algos`.
 */
public enum NaSplitDir {
    //never saw NAs in training
    None(0),     //initial state - should not be present in a trained model

    // saw NAs in training
    NAvsREST(1), //split off non-NA (left) vs NA (right)
    NALeft(2),   //NA goes left
    NARight(3),  //NA goes right

    // never NAs in training, but have a way to deal with them in scoring
    Left(4),     //test time NA should go left
    Right(5);    //test time NA should go right

    private int value;
    NaSplitDir(int v) { this.value = v; }
    public int value() { return value; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy