Skip to content

Commit 164b5b2

Browse files
committed
Add t2e models to Enum
1 parent 1dab648 commit 164b5b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

octopus/types.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ImputationMethod(str, Enum):
4545

4646

4747
class ModelName(StrEnum):
48-
"""Available model names for user-friendly model selection with IDE autocomplete.
48+
"""Available model names.
4949
5050
Use this enum for IDE autocomplete when specifying models, e.g.::
5151
@@ -80,6 +80,10 @@ class ModelName(StrEnum):
8080
HistGradientBoostingRegressor = "HistGradientBoostingRegressor"
8181
TabularNNRegressor = "TabularNNRegressor"
8282

83+
# Time-to-event (survival) models
84+
CatBoostCoxSurvival = "CatBoostCoxSurvival"
85+
XGBoostCoxSurvival = "XGBoostCoxSurvival"
86+
8387

8488
class FIResultLabel(StrEnum):
8589
"""Labels used in feature-importance result DataFrames.

0 commit comments

Comments
 (0)