Config parameters for model config in classification
Customize the training behavior of your classification solution by passing in a dictionary of parameters in JSON format.
始める前に
Role required: ml_admin or admin
このタスクについて
You can fine-tune model performance by passing in a dictionary of parameters to adjust training behavior.
Understand the machine learning hyperparameters relevant to your model objective. This option is advanced and should be modified with care.
You can add these parameters in the solution definition form by using the following procedure.
Alternatively, you can use a script to add these parameters. For the format to use when scripting, see the What to do next section of this page.
手順
タスクの結果
The setting appears as a row on the Advanced Solution Setting tab on your solution's form.
次のタスク
Retrain your solution.
You can also pass in this dictionary with a script. Be sure to use the enclosing label, braces, and parentheses when scripting.
config.setModelParams({
'max_depth': 10,
'learning_rate': 0.1,
'objective': 'multi:softprob',
'num_class': 11,
'random_state': 10,
'eval_metric': 'mlogloss',
'booster': 'gbtree',
'n_estimators': 150,
'verbosity': 1,
'use_label_encoder': false,
'tree_method': 'hist',
'num_parallel_tree': 1,
'gamma': 0.25,
'subsample': 0.8,
'max_delta_step': 5,
'reg_alpha': 0,
'reg_lambda': 1,
'colsample_bytree': 0.8,
'colsample_bylevel': 1,
'colsample_bynode': 1,
'min_child_weight': 1.25,
'n_jobs': 11,
'validate_parameters': true
});
{
"classification_model_params": {
'max_depth': 10,
'learning_rate': 0.1,
'objective': 'multi:softprob',
'num_class': 11,
'random_state': 10,
'eval_metric': 'mlogloss',
'booster': 'gbtree',
'n_estimators': 150,
'verbosity': 1,
'use_label_encoder': false,
'tree_method': 'hist',
'num_parallel_tree': 1,
'gamma': 0.25,
'subsample': 0.8,
'max_delta_step': 5,
'reg_alpha': 0,
'reg_lambda': 1,
'colsample_bytree': 0.8,
'colsample_bylevel': 1,
'colsample_bynode': 1,
'min_child_weight': 1.25,
'n_jobs': 11,
'validate_parameters': true
}
}