public class DTree extends Iced
DTree
Node
s. The Nodes are numbered with a unique _nid
. Users
need to maintain their own mapping from their data to a _nid
, where
the obvious technique is to have a Vec of _nid
s (ints), one per each
element of the data Vecs.
Each Node
has a DHistogram
, describing summary data about the
rows. The DHistogram requires a pass over the data to be filled in, and we
expect to fill in all rows for Nodes at the same depth at the same time.
i.e., a single pass over the data will fill in all leaf Nodes' DHistograms
at once.Modifier and Type | Class and Description |
---|---|
static class |
DTree.DecidedNode |
static class |
DTree.LeafNode |
static class |
DTree.Node |
static class |
DTree.Split |
static class |
DTree.TreeModel |
static class |
DTree.UndecidedNode |
Constructor and Description |
---|
DTree(java.lang.String[] names,
int ncols,
char nbins,
char nclass,
int min_rows) |
DTree(java.lang.String[] names,
int ncols,
char nbins,
char nclass,
int min_rows,
long seed) |
Modifier and Type | Method and Description |
---|---|
DTree.TreeModel.CompressedTree |
compress() |
DTree.DecidedNode |
decided(int i) |
static boolean |
isRootNode(DTree.Node n) |
int |
len() |
void |
len(int len) |
DTree.Node |
node(int i) |
java.util.Random |
rngForChunk(int cidx) |
DTree.Node |
root() |
Key |
save()
Save this tree into DKV store under default random Key.
|
Key |
save(Key k)
Save this tree into DKV store under the given Key.
|
DTree.UndecidedNode |
undecided(int i) |
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public DTree(java.lang.String[] names, int ncols, char nbins, char nclass, int min_rows)
public DTree(java.lang.String[] names, int ncols, char nbins, char nclass, int min_rows, long seed)
public final DTree.Node root()
public final DTree.Node node(int i)
public final DTree.UndecidedNode undecided(int i)
public final DTree.DecidedNode decided(int i)
public java.util.Random rngForChunk(int cidx)
public final int len()
public final void len(int len)
public static final boolean isRootNode(DTree.Node n)
public DTree.TreeModel.CompressedTree compress()
public Key save()