from evalml.pipelines import PipelineBase
[docs]class CatBoostClassificationPipeline(PipelineBase):
"""
CatBoost Pipeline for both binary and multiclass classification.
CatBoost is an open-source library and natively supports categorical features.
For more information, check out https://catboost.ai/
Note: impute_strategy must support both string and numeric data
"""
component_graph = ['Simple Imputer', 'CatBoost Classifier']
supported_problem_types = ['binary', 'multiclass']
custom_hyperparameters = {
"impute_strategy": ["most_frequent"],
}
[docs] def __init__(self, parameters, objective, random_state=0):
# note: impute_strategy must support both string and numeric data
super().__init__(parameters=parameters,
objective=objective,
random_state=random_state)