hex.gbm
Class DRF.DRFModel

java.lang.Object
  extended by water.Iced
      extended by water.Model
          extended by hex.gbm.DTree.TreeModel
              extended by hex.gbm.DRF.DRFModel
All Implemented Interfaces:
java.lang.Cloneable, Freezable
Enclosing class:
DRF

public static class DRF.DRFModel
extends DTree.TreeModel


Nested Class Summary
 
Nested classes/interfaces inherited from class hex.gbm.DTree.TreeModel
DTree.TreeModel.CompressedTree, DTree.TreeModel.TreeVisitor<T extends java.lang.Exception>
 
Nested classes/interfaces inherited from class water.Model
Model.SB
 
Field Summary
static DocGen.FieldDoc[] DOC_FIELDS
           
 
Fields inherited from class hex.gbm.DTree.TreeModel
cm, errs, N, testKey, treeBits
 
Fields inherited from class water.Model
_dataKey, _domains, _names, _selfKey
 
Constructor Summary
DRF.DRFModel(DRF.DRFModel prior, hex.gbm.DTree[] trees, double err, long[][] cm)
           
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 hex.gbm.DTree.TreeModel
cm, generateHTML, numTrees, toJavaPredictBody
 
Methods inherited from class water.Model
adapt, classNames, delete, getDomainMapping, isClassifier, nclasses, responseName, score, score, score, score, score, score0, testJavaScoring, toJava, toJavaInit, toJavaInit
 
Methods inherited from class water.Iced
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOC_FIELDS

public static DocGen.FieldDoc[] DOC_FIELDS
Constructor Detail

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,
                    hex.gbm.DTree[] trees,
                    double err,
                    long[][] cm)
Method Detail

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