public abstract static class Model.Parameters extends Iced<Model.Parameters>
The non-transient fields are input parameters to the model-building process, and are considered "first class citizens" by the front-end - the front-end will cache Parameters (in the browser, in JavaScript, on disk) and rebuild Parameter instances from those caches. WARNING: Model Parameters is not immutable object and ModelBuilder can modify them!
Modifier and Type | Class and Description |
---|---|
static class |
Model.Parameters.CategoricalEncodingScheme |
static class |
Model.Parameters.FoldAssignmentScheme |
Modifier and Type | Field and Description |
---|---|
boolean |
_auto_rebalance |
boolean |
_balance_classes
Should all classes be over/under-sampled to balance the class
distribution?
|
Model.Parameters.CategoricalEncodingScheme |
_categorical_encoding |
Key<? extends Model> |
_checkpoint
A model key associated with a previously trained Deep Learning
model.
|
float[] |
_class_sampling_factors
Desired over/under-sampling ratios per class (lexicographic order).
|
Distribution.Family |
_distribution |
Model.Parameters.FoldAssignmentScheme |
_fold_assignment |
java.lang.String |
_fold_column |
double |
_huber_alpha |
boolean |
_ignore_const_cols |
java.lang.String[] |
_ignored_columns |
boolean |
_is_cv_model |
boolean |
_keep_cross_validation_fold_assignment |
boolean |
_keep_cross_validation_predictions |
float |
_max_after_balance_size
When classes are being balanced, limit the resulting dataset size to
the specified multiple of the original dataset size.
|
int |
_max_confusion_matrix_size
For classification models, the maximum size (in terms of classes) of
the confusion matrix for it to be printed.
|
double |
_max_runtime_secs
Maximum allowed runtime in seconds for model training.
|
int |
_nfolds |
java.lang.String |
_offset_column |
boolean |
_parallelize_cross_validation |
Key<? extends Model> |
_pretrained_autoencoder
A pretrained Autoencoder DL model with matching inputs and hidden layers
can be used to initialize the weights and biases (excluding the output layer).
|
double |
_quantile_alpha |
java.lang.String |
_response_column
Supervised models have an expected response they get to train with!
|
boolean |
_score_each_iteration |
long |
_seed |
ScoreKeeper.StoppingMetric |
_stopping_metric
Metric to use for convergence checking, only for _stopping_rounds > 0.
|
int |
_stopping_rounds
Early stopping based on convergence of stopping_metric.
|
double |
_stopping_tolerance
Relative tolerance for metric-based stopping criterion: stop if relative improvement is not at least this much.
|
Key<Frame> |
_train |
double |
_tweedie_power |
Key<Frame> |
_valid |
java.lang.String |
_weights_column |
static int |
MAX_SUPPORTED_LEVELS
Maximal number of supported levels in response.
|
Constructor and Description |
---|
Model.Parameters() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
algoName()
The short name, used in making Keys.
|
protected long |
checksum_impl()
Compute a checksum based on all non-transient non-static ice-able assignable fields (incl.
|
long |
checksum() |
protected boolean |
defaultDropConsCols() |
protected double |
defaultStoppingTolerance()
Default relative tolerance for convergence-based early stopping
|
abstract java.lang.String |
fullName()
The pretty algo name for this Model (e.g., Gradient Boosting Method, rather than GBM).
|
long |
getOrMakeRealSeed() |
boolean |
hasCheckpoint() |
abstract java.lang.String |
javaName()
The Java class name for this Model (e.g., hex.tree.gbm.GBM, rather than GBM).
|
double |
missingColumnsType()
Type of missing columns during adaptation between train/test datasets
Overload this method for models that have sparse data handling - a zero
will preserve the sparseness.
|
abstract long |
progressUnits()
How much work will be done for this model?
|
void |
read_lock_frames(Job job)
Read-Lock both training and validation User frames.
|
void |
read_unlock_frames(Job job)
Read-UnLock both training and validation User frames.
|
Frame |
train() |
Frame |
valid() |
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public static final int MAX_SUPPORTED_LEVELS
public int _nfolds
public boolean _keep_cross_validation_predictions
public boolean _keep_cross_validation_fold_assignment
public boolean _parallelize_cross_validation
public boolean _auto_rebalance
public long _seed
public Model.Parameters.FoldAssignmentScheme _fold_assignment
public Model.Parameters.CategoricalEncodingScheme _categorical_encoding
public Distribution.Family _distribution
public double _tweedie_power
public double _quantile_alpha
public double _huber_alpha
public java.lang.String[] _ignored_columns
public boolean _ignore_const_cols
public java.lang.String _weights_column
public java.lang.String _offset_column
public java.lang.String _fold_column
public boolean _is_cv_model
public boolean _score_each_iteration
public double _max_runtime_secs
public int _stopping_rounds
public ScoreKeeper.StoppingMetric _stopping_metric
public double _stopping_tolerance
public java.lang.String _response_column
public boolean _balance_classes
public float _max_after_balance_size
public float[] _class_sampling_factors
public int _max_confusion_matrix_size
public Key<? extends Model> _checkpoint
public abstract java.lang.String algoName()
public abstract java.lang.String fullName()
public abstract java.lang.String javaName()
protected double defaultStoppingTolerance()
public abstract long progressUnits()
public long getOrMakeRealSeed()
public final Frame train()
public final Frame valid()
public void read_lock_frames(Job job)
public void read_unlock_frames(Job job)
protected boolean defaultDropConsCols()
public double missingColumnsType()
public boolean hasCheckpoint()
public long checksum()
protected long checksum_impl()