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
def xgboost_component(kind, name=None, space='large', config=None)
#
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
def xgboost_large_space(*, is_classifier, tree_method, device)
#
Create a large space for XGBoost hyperparameter optimization.
Source code in src/amltk/pipeline/xgboost.py
def xgboost_performant_space(*, is_classifier, tree_method, device)
#
Create a performant space for XGBoost hyperparameter optimization.