Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions configs/models_configs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import numpy as np
import xgboost as xgb
from catboost import CatBoostRegressor
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.linear_model import Lasso, Ridge
from sklearn.neighbors import KNeighborsRegressor
Expand All @@ -13,9 +14,15 @@
},
)

LassoConfig = (Lasso, {"alpha": np.logspace(-3, 2, 6)})
CatBoostConfig = (
CatBoostRegressor,
{"learning_rate": np.logspace(-2, -1, 3), "max_depth": [3, 5, 7], "verbose": [0]},
)


LassoConfig = (Lasso, {"alpha": np.logspace(-3, 1, 6)})

RidgeConfig = (Ridge, {"alpha": np.logspace(-3, 2, 5)})
RidgeConfig = (Ridge, {"alpha": np.logspace(-3, 1, 5)})

GradientBoostingRegressorConfig = (
GradientBoostingRegressor,
Expand Down Expand Up @@ -43,5 +50,6 @@
"Ridge": RidgeConfig,
"GradientBoostingRegressor": GradientBoostingRegressorConfig,
"KNeighborsRegressor": KNeighborsRegressorConfig,
"CatBoost": CatBoostConfig,
"SVR": SVRConfig,
}
Loading