public static class GBM.GBMModel extends DTree.TreeModel
DTree.TreeModel.CompressedTree, DTree.TreeModel.TreeModelType, DTree.TreeModel.TreeStats, DTree.TreeModel.TreeVisitor<T extends java.lang.Exception>
Model.ModelAutobufferSerializer, Model.ModelCategory
Modifier and Type | Field and Description |
---|---|
static DocGen.FieldDoc[] |
DOC_FIELDS |
cmDomain, cms, errs, isFromSpeeDRF, max_depth, min_rows, N, nbins, testKey, treeKeys, treeStats, validAUC, varimp
_dataKey, _domains, _have_cv_results, _modelClassDist, _names, _priorClassDist, GEN_BENCHMARK_CODE, training_duration_in_ms, training_start_time, warnings
Constructor and Description |
---|
GBM.GBMModel(GBM job,
Key key,
Key dataKey,
Key testKey,
java.lang.String[] names,
java.lang.String[][] domains,
java.lang.String[] cmDomain,
int ntrees,
int max_depth,
int min_rows,
int nbins,
double learn_rate,
GBM.Family family,
int num_folds,
float[] priorClassDist,
float[] classDist) |
Modifier and Type | Method and Description |
---|---|
protected void |
generateModelDescription(java.lang.StringBuilder sb) |
GBM |
get_params() |
protected DTree.TreeModel.TreeModelType |
getTreeModelType() |
Request2 |
job() |
protected float[] |
score0(double[] data,
float[] preds)
Subclasses implement the scoring logic.
|
protected void |
setCrossValidationError(Job.ValidatedJob job,
double cv_error,
ConfusionMatrix cm,
AUCData auc,
HitRatio hr) |
protected void |
toJavaUnifyPreds(SB bodyCtxSB)
Generates code which unify preds[1,...NCLASSES]
|
cm, ctree, delete_impl, delete_trees, delete_trees, generateHTML, generateHTMLAUC, generateHTMLTreeStats, generateHTMLVarImp, getModelSerializer, mse, ntrees, score0, toJavaDefaultMaxIters, toJavaHtml, toJavaInit, toJavaPredictBody, toJavaTreePredictFct, varimp
adapt, adapt, addWarning, calcError, classNames, errStr, getDomainMapping, getDomainMapping, getModelCategory, getUniqueId, hasCrossValModels, isClassifier, isSupervised, missingColumnsType, nclasses, nfeatures, printCrossValidationModelsHTML, responseName, score, score, score, score, score, score, score0, scoreCrossValidation, scoreImpl, setModelClassDistribution, start_training, start_training, stop_training, testJavaScoring, toJava, toJava, toJavaFillPreds0, toJavaInit, toJavaNCLASSES, toJavaSuper
delete_and_lock, delete, delete, delete, delete, is_unlocked, is_wlocked, read_lock, read_lock, unlock_all, unlock_lockable, unlock, update, write_lock
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public static DocGen.FieldDoc[] DOC_FIELDS
public GBM.GBMModel(GBM job, Key key, Key dataKey, Key testKey, java.lang.String[] names, java.lang.String[][] domains, java.lang.String[] cmDomain, int ntrees, int max_depth, int min_rows, int nbins, double learn_rate, GBM.Family family, int num_folds, float[] priorClassDist, float[] classDist)
public final GBM get_params()
get_params
in class Model
protected DTree.TreeModel.TreeModelType getTreeModelType()
getTreeModelType
in class DTree.TreeModel
protected float[] score0(double[] data, float[] preds)
Model
score0
in class DTree.TreeModel
protected void generateModelDescription(java.lang.StringBuilder sb)
generateModelDescription
in class DTree.TreeModel
protected void toJavaUnifyPreds(SB bodyCtxSB)
Model
toJavaUnifyPreds
in class Model
protected void setCrossValidationError(Job.ValidatedJob job, double cv_error, ConfusionMatrix cm, AUCData auc, HitRatio hr)
setCrossValidationError
in class Model