Xgboost
amltk.pipeline.xgboost
#
Get an XGBoost component for your pipeline.
A Component
wrapped
around XGBoost with
two possible default spaces "large"
and "performant"
or you own custom space=
.
See amltk.pipeline.xgboost.xgboost_component
xgboost_component
#
xgboost_component(
kind: Literal["classifier", "regressor"],
name: str | None = None,
space: Any | Literal["large", "performant"] = "large",
config: Mapping[str, Any] | None = None,
) -> Component
Create a component with an XGBoost estimator.
PARAMETER | DESCRIPTION |
---|---|
kind |
The kind of estimator to create, either "classifier" or "regressor".
TYPE:
|
name |
The name of the step in the pipeline.
TYPE:
|
space |
The space to use for hyperparameter optimization. Choose from "large", "performant" or provide a custom space. Todo Currently Warning The default space is by no means optimal, please adjust it to your needs. You can find the link to the XGBoost parameters here: |
config |
The keyword arguments to pass to the XGBoost estimator when it will be created. These will be hard set on the estimator and removed from the default space if no space is provided. |
RETURNS | DESCRIPTION |
---|---|
Component
|
A pipeline with an XGBoost estimator. |
Source code in src/amltk/pipeline/xgboost.py
xgboost_large_space
#
Create a large space for XGBoost hyperparameter optimization.
Source code in src/amltk/pipeline/xgboost.py
xgboost_performant_space
#
Create a performant space for XGBoost hyperparameter optimization.