mlforecast.distributed.models.dask.xgb
DaskXGBForecast
Client
object can not be serialized for transmission, so if task is launched from a worker instead of directly from the client process, this attribute needs to be set at that worker.
booster=gblinear
). It is not defined for other base learner types, such as tree learners (booster=gbtree
).
Returns
------- coef_ : array of shape [n_features]
or [n_classes, n_features]
importance_type
parameter. When model trained with multi-class/multi-label/multi-target dataset, the feature importance is “averaged” over all targets. The “average” is defined based on the importance type. For instance, if the importance type is “total_gain”, then the score is sum of loss change for each split from all trees.
Returns
------- feature_importances_ : array of shape [n_features]
except for multi-class linear model, which returns an array with shape (n_features, n_classes)
fit
. Defined only when X
has feature names that are all strings.
base_score
.
Returns
------- intercept_ : array of shape (1,)
or [n_classes]
fit
.