Parameters
This page describes the Python parameter dictionary used by SingleOutputGBDT and MultiOutputGBDT in this fork. Unless noted otherwise, defaults come from omnigbdt.lib_utils.default_params(). Several defaults intentionally differ from the original package; see Differences From Upstream.
General
loss: default =b"mse", type = bytes - Supported values areb"mse",b"bce",b"ce", andb"ce_column"-b"ce_column"is only relevant to legacySingleOutputGBDTclassification-style workflows - The Python API expects a byte string, for exampleb"mse"- For binary cross-entropy, a confidently wrong prediction beyond about 36.74 absolute log-odds uses the logistic curvature bound of 0.25. This keeps the corrective step finite even with zero L2 regularization. - when training with a customobjective=..., the native booster still requireslossto be a supported built-in value at construction time, but custom rounds will use the custom callback instead of the built-in objectiveverbosity: default =Verbosity.FULL(2), type =Verbosityor int -Verbosity.SILENT/0prints nothing from the native trainer -Verbosity.SUMMARY/1prints only the final best score when evaluation data is present -Verbosity.FULL/2prints per-round metrics and the final best scoreverbose: default =True, type = bool - Backward-compatible alias for the old two-level behavior -Falsemaps toVerbosity.SILENT-Truemaps toVerbosity.FULLnum_threads: default =2, type = int - Number of training threadsdeterministic: default =True, type = bool - Enables the documented fixed-thread CPU repeatability mode on the same platform - The current packaged CPU implementation already uses deterministic split selectionseed: default =0, type = int - Controls the training row samples whensubsample < 1.0and input feature samples whencolsample_bytree < 1.0- Controls Gaussian directions whenprojection_dimis set. Each tree uses the seed and its position in the retained ensemble.hist_cache: default =16, type = int - Maximum number of histogram cachesmax_bins: default =128, type = int - Maximum number of bins for each input feature, from 1 through 65,535 - When distinct values exceed this limit, the cut targets are based on row counts. Repeated values stay together. - Retraining a 0.5.1 model on repeated-valued features can therefore produce different splits. Loading a saved model uses its stored thresholds.topk: default =0, type = int - Sparse split-finding parameter - If0, the dense split-search path is usedone_side: default =True, type = bool - Selects the sparse split-search variant - Only used whentopk != 0
Tree
max_depth: default =4, type = int - Maximum tree depth - Must be at least1max_leaves: default =32, type = int - Maximum number of leaves per treemin_samples: default =20, type = int - Minimum number of samples allowed in a leafearly_stop: default =15, type = int - Early-stopping patience in rounds - If no evaluation labels are registered, early stopping stays inactive
Learning
output_metric: default =None, type = array-like - A weight vector sets how much each target’s squared error counts. For example,[0.8, 0.2]gives the first target four times the weight of the second. A matrix also accounts for errors that reinforce or offset each other across targets. - Use nonnegative vector weights or a symmetric positive-semidefinite matrix with one row and column per target. At least one direction must have positive weight. - For an error vectore = prediction - targetand matrixM, the loss per row is0.5 * e @ M @ e. A weight vector supplies the diagonal ofM. Validation reports the square root of the mean ofe @ M @ eover rows and minimizes it for early stopping. - With equal weights of1 / out_dim, training produces the same splits, leaf values and early-stopping rounds as ordinary least squares. For any common positive weightw, the equivalent ordinary split threshold isgamma / (out_dim * w), and the reported validation score is ordinary RMSE timessqrt(out_dim * w). - Supported for regression with two or more targets inMultiOutputGBDTandMultiOutputGBDTRegressor. Use the built-inloss=b"mse",topk=0, andreg_l1=0. The same metric applies to every row. The L2 leaf penalty uses the same metric as the loss. - A direction with zero weight contributes nothing to split selection. Its prediction follows the usual regularized mean residual in each leaf. A Gram matrix can acquire very small negative eigenvalues through rounding. In that case, eigenvalues within roundoff of zero in the scaled matrix are treated as zero.projection_dim: default =None, type = int orNone- Use a positive integerkup to the number of targets to score candidate splits with Gaussian projections. For example,projection_dim=2uses two random mixtures of the residuals to grow each tree in a six-target regression. Every leaf still fits all six outputs. -Noneuses the exact split score. A width covering all active output directions also uses exact scoring. Withoutput_metric, the projection acts on the metric-weighted residuals. - A fresh matrix is drawn per tree with independent entries of variance1 / k. Validation and early stopping use the full objective. Prediction requires only the fitted trees. - Requires two or more targets, built-inloss=b"mse",topk=0,reg_l1=0, and finite, nonnegativereg_l2. These settings apply toMultiOutputGBDTandMultiOutputGBDTRegressor.lr: default =0.05, type = float - Learning ratebase_score: default =None, type =None| float | sequence of floats -Noneenables automatic regression mean initialization -SingleOutputGBDTresolves one scalar base score -MultiOutputGBDTaccepts either one scalar or one value per output columnreg_l1: default =0.0, type = float - L1 regularization term - The upstream code notes that this is not currently used for sparse split findingreg_l2: default =1.0, type = float - L2 regularization termgamma: default =1e-3, type = float - Minimum objective gain required for a split - Applies to the root split as well as deeper nodessubsample: default =1.0, type = float - Fraction of training rows used to fit each tree, in the range(0, 1]- A value below one draws a fresh sample without replacement for each tree. The sample size is the fraction times the training row count, rounded down, with a minimum of one row. - Split statistics and leaf values use the sampled rows. Each tree updates predictions for every training and validation row.colsample_bytree: default =1.0, type = float - Fraction of input features available for splitting, in the range(0, 1]. Each tree draws a fresh set without replacement and uses it at every node. With 61 features,colsample_bytree=0.8draws 48 per tree. The count is rounded down, with a minimum of one. - Available on both boosters and both sklearn regressors. It can be combined with row sampling and, in dense multi-output regression, random output projection. All input columns are still supplied topredict()in their original order. - To continue the same sampling sequence after loading a model, supply the original fraction and seed. Prediction uses the feature indices stored in the trees.
Training call hooks
The public callback hooks live on train(...) rather than inside the params dictionary:
train(num, objective=None, eval_metric=None, maximize=None)- available onSingleOutputGBDTandMultiOutputGBDT- Built-in classifiers maximize validation accuracy by default. Passeval_metric="logloss"to minimize validation log loss for this training call. The legacytrain_multimethod accepts the same metric. -objective(preds, y_true)must return(grad, hess)- For custom objectives,eval_metric(preds, y_true)must return a scalar float andmaximizecontrols whether larger values are better.
Shape rules:
SingleOutputGBDT.train(..., objective=...)uses 1D prediction and label arrays shaped(n_samples,)MultiOutputGBDT.train(..., objective=...)uses 2D prediction and label arrays shaped(n_samples, out_dim)
Custom early stopping:
if
early_stop > 0and evaluation labels are registered on the custom-objective path, theneval_metricandmaximizemust also be providedthe protected
_set_gh(...)plusboost()workflow remains available for advanced manual control
Model-specific notes
MultiOutputGBDTexpects multi-output labels shaped like(n_samples, out_dim)SingleOutputGBDTis best used with one target column at a timefor a comparison with a multi-output baseline using
SingleOutputGBDT, train one model per target column and stack their predictions manuallySingleOutputGBDT.train_multi(...)is a legacy helper for multi-class classification style workflows, not the common baseline path used in this fork’s examples