@Deprecated public class DecisionForest extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
DecisionForest(List<Node> trees)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
classify(Data data,
double[][] predictions)
Deprecated.
Classifies the data and calls callback for each classification
|
double |
classify(Dataset dataset,
Random rng,
Instance instance)
Deprecated.
predicts the label for the instance
|
boolean |
equals(Object obj)
Deprecated.
|
int |
hashCode()
Deprecated.
|
static DecisionForest |
load(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path forestPath)
Deprecated.
Load the forest from a single file or a directory of files
|
long |
meanMaxDepth()
Deprecated.
|
long |
meanNbNodes()
Deprecated.
|
long |
nbNodes()
Deprecated.
|
static DecisionForest |
read(DataInput dataInput)
Deprecated.
Read the forest from inputStream
|
void |
readFields(DataInput dataInput)
Deprecated.
Reads the trees from the input and adds them to the existing trees
|
void |
write(DataOutput dataOutput)
Deprecated.
|
public void classify(Data data, double[][] predictions)
public double classify(Dataset dataset, Random rng, Instance instance)
rng
- Random number generator, used to break ties randomlypublic long meanNbNodes()
public long nbNodes()
public long meanMaxDepth()
public void write(DataOutput dataOutput) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput dataInput) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public static DecisionForest read(DataInput dataInput) throws IOException
dataInput
- - input forestDecisionForest
IOException
public static DecisionForest load(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path forestPath) throws IOException
IOException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.