hex.drf
Class DRF.DRFModel
java.lang.Object
water.Iced
water.Model
hex.gbm.DTree.TreeModel
hex.drf.DRF.DRFModel
- All Implemented Interfaces:
- java.lang.Cloneable, Freezable
- Enclosing class:
- DRF
public static class DRF.DRFModel
- extends DTree.TreeModel
DRF model holding serialized tree and implementing logic for scoring a row
| Nested classes/interfaces inherited from class water.Model |
Model.SB |
|
Constructor Summary |
DRF.DRFModel(DRF.DRFModel prior,
DTree[] trees,
double err,
long[][] cm,
DTree.TreeModel.TreeStats tstats)
|
DRF.DRFModel(DRF.DRFModel prior,
float[] varimp)
|
DRF.DRFModel(Key key,
Key dataKey,
Key testKey,
java.lang.String[] names,
java.lang.String[][] domains,
int ntrees)
|
|
Method Summary |
protected float[] |
score0(double[] data,
float[] preds)
Subclasses implement the scoring logic. |
| Methods inherited from class water.Model |
adapt, adapt, classNames, delete, getDomainMapping, isClassifier, nclasses, responseName, score, score, score, score, score, score0, testJavaScoring, toJava, toJavaInit, toJavaInit |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOC_FIELDS
public static DocGen.FieldDoc[] DOC_FIELDS
DRF.DRFModel
public DRF.DRFModel(Key key,
Key dataKey,
Key testKey,
java.lang.String[] names,
java.lang.String[][] domains,
int ntrees)
DRF.DRFModel
public DRF.DRFModel(DRF.DRFModel prior,
DTree[] trees,
double err,
long[][] cm,
DTree.TreeModel.TreeStats tstats)
DRF.DRFModel
public DRF.DRFModel(DRF.DRFModel prior,
float[] varimp)
score0
protected float[] score0(double[] data,
float[] preds)
- Description copied from class:
Model
- Subclasses implement the scoring logic. The data is pre-loaded into a
re-used temp array, in the order the model expects. The predictions are
loaded into the re-used temp array, which is also returned.
- Overrides:
score0 in class DTree.TreeModel