public class DeepLearningModel extends hex.SupervisedModel<DeepLearningModel,DeepLearningModel.DeepLearningParameters,DeepLearningModel.DeepLearningOutput>
| Modifier and Type | Class and Description |
|---|---|
static class |
DeepLearningModel.DeepLearningModelInfo |
static class |
DeepLearningModel.DeepLearningOutput |
static class |
DeepLearningModel.DeepLearningParameters |
static class |
DeepLearningModel.Errors |
| Modifier and Type | Field and Description |
|---|---|
long |
_timeLastScoreEnter |
water.Key |
actual_best_model_key |
long |
actual_train_samples_per_iteration |
double |
epoch_counter |
double |
time_for_communication_us |
long |
training_rows |
long |
validation_rows |
| Constructor and Description |
|---|
DeepLearningModel(water.Key destKey,
DeepLearningModel.DeepLearningParameters parms,
DeepLearningModel.DeepLearningOutput output,
water.fvec.Frame train,
water.fvec.Frame valid) |
DeepLearningModel(water.Key destKey,
DeepLearningModel cp,
boolean store_best_model,
FrameTask.DataInfo dataInfo)
Constructor to restart from a checkpointed model
|
| Modifier and Type | Method and Description |
|---|---|
double |
calcOutlierThreshold(water.fvec.Vec mse,
double quantile)
Compute quantile-based threshold (in reconstruction error) to find outliers
|
hex.ConfusionMatrix |
cm()
for grid search error reporting
|
int |
compareTo(DeepLearningModel o) |
void |
delete_best_model() |
void |
delete_xval_models() |
float |
error() |
DeepLearningModel.DeepLearningParameters |
get_params() |
boolean |
isSupervised() |
protected double |
missingColumnsType() |
DeepLearningModel.DeepLearningModelInfo |
model_info() |
double |
mse() |
water.api.ModelSchema |
schema() |
water.fvec.Frame |
score(water.fvec.Frame fr) |
float[] |
score0(double[] data,
float[] preds)
Predict from raw double values representing the data
|
water.fvec.Frame |
scoreAutoEncoder(water.fvec.Frame frame)
Score auto-encoded reconstruction (on-the-fly, without allocating the reconstruction as done in Frame score(Frame fr))
|
protected water.fvec.Frame |
scoreImpl(water.fvec.Frame orig,
water.fvec.Frame adaptedFr)
Make either a prediction or a reconstruction.
|
DeepLearningModel.Errors[] |
scoring_history() |
java.lang.String |
toString() |
java.lang.String |
toStringAll() |
hex.VarImp |
varimp() |
adaptTestForTrain, adaptTestForTrain, addWarning, checksum_impl, remove_impl, scoredelete_and_lock, delete, delete, delete, read_lock, read_lock, unlock_all, unlock, update, write_lockpublic long actual_train_samples_per_iteration
public double time_for_communication_us
public double epoch_counter
public long training_rows
public long validation_rows
public water.Key actual_best_model_key
public long _timeLastScoreEnter
public DeepLearningModel(water.Key destKey,
DeepLearningModel cp,
boolean store_best_model,
FrameTask.DataInfo dataInfo)
destKey - New destination key for the modelcp - Checkpoint to restart fromstore_best_model - Store only the best model instead of the latest onepublic DeepLearningModel(water.Key destKey,
DeepLearningModel.DeepLearningParameters parms,
DeepLearningModel.DeepLearningOutput output,
water.fvec.Frame train,
water.fvec.Frame valid)
public water.api.ModelSchema schema()
schema in class hex.Model<DeepLearningModel,DeepLearningModel.DeepLearningParameters,DeepLearningModel.DeepLearningOutput>public final DeepLearningModel.DeepLearningModelInfo model_info()
public DeepLearningModel.Errors[] scoring_history()
public final DeepLearningModel.DeepLearningParameters get_params()
protected double missingColumnsType()
public float error()
public boolean isSupervised()
isSupervised in class hex.SupervisedModel<DeepLearningModel,DeepLearningModel.DeepLearningParameters,DeepLearningModel.DeepLearningOutput>public int compareTo(DeepLearningModel o)
public hex.ConfusionMatrix cm()
public double mse()
public hex.VarImp varimp()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringAll()
protected water.fvec.Frame scoreImpl(water.fvec.Frame orig,
water.fvec.Frame adaptedFr)
scoreImpl in class hex.Model<DeepLearningModel,DeepLearningModel.DeepLearningParameters,DeepLearningModel.DeepLearningOutput>orig - Test datasetadaptedFr - Test dataset, adapted to the modelpublic float[] score0(double[] data,
float[] preds)
score0 in class hex.Model<DeepLearningModel,DeepLearningModel.DeepLearningParameters,DeepLearningModel.DeepLearningOutput>data - raw array containing categorical values (horizontalized to 1,0,0,1,0,0 etc.) and numerical values (0.35,1.24,5.3234,etc), both can contain NaNspreds - predicted label and per-class probabilities (for classification), predicted target (regression), can contain NaNspublic water.fvec.Frame scoreAutoEncoder(water.fvec.Frame frame)
frame - Original data (can contain response, will be ignored)public water.fvec.Frame score(water.fvec.Frame fr)
score in class hex.Model<DeepLearningModel,DeepLearningModel.DeepLearningParameters,DeepLearningModel.DeepLearningOutput>public double calcOutlierThreshold(water.fvec.Vec mse,
double quantile)
mse - Vector containing reconstruction errorsquantile - Quantile for cut-offpublic void delete_best_model()
public void delete_xval_models()