Skip to content

learner

XGBoostClassifierLearner(**kwargs)

Bases: SupervisedLearner

Wrapper for XGBoost classifiers.

Source code in src/flowcean/xgboost/learner.py
14
15
16
17
18
def __init__(self, **kwargs: Any) -> None:
    self.classifier = XGBClassifier(
        **kwargs,
    )
    super().__init__()

XGBoostRegressorLearner(**kwargs)

Bases: SupervisedLearner

Wrapper for XGBoost regressor.

Source code in src/flowcean/xgboost/learner.py
46
47
48
49
50
def __init__(self, **kwargs: Any) -> None:
    self.regressor = XGBRegressor(
        **kwargs,
    )
    super().__init__()