model
XGBoostClassifierModel(classifier, *, input_features, output_features, threshold=0.5)
Bases: Model
Wrapper for an XGBoost classifier model with threshold support.
Source code in src/flowcean/xgboost/model.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |
predict_proba(input_features)
Predict class probabilities, applying preprocessing transforms.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_features
|
LazyFrame
|
The inputs for which to predict probabilities. |
required |
Returns:
| Type | Description |
|---|---|
LazyFrame
|
The predicted probabilities for the positive class. |
Source code in src/flowcean/xgboost/model.py
59 60 61 62 63 64 65 66 67 68 69 | |
__getstate__()
Remove callbacks when pickling (they contain unpickleable locks).
Source code in src/flowcean/xgboost/model.py
71 72 73 74 75 76 77 78 79 80 81 | |
__setstate__(state)
Restore state after unpickling.
Source code in src/flowcean/xgboost/model.py
83 84 85 | |
XGBoostRegressorModel(regressor, *, input_features, output_features)
Bases: Model
Wrapper for an XGBoost regressor model.
Source code in src/flowcean/xgboost/model.py
122 123 124 125 126 127 128 129 130 131 132 | |
__getstate__()
Remove callbacks when pickling (they contain unpickleable locks).
Source code in src/flowcean/xgboost/model.py
134 135 136 137 138 139 140 141 142 143 144 | |
__setstate__(state)
Restore state after unpickling.
Source code in src/flowcean/xgboost/model.py
146 147 148 | |