mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-26 01:08:04 +00:00
feat(Models): added optional hpsklearn (#236)
This commit is contained in:
+10
-9
@@ -17,22 +17,23 @@ dependencies:
|
|||||||
- ipython
|
- ipython
|
||||||
- ipykernel
|
- ipykernel
|
||||||
- scipy
|
- scipy
|
||||||
|
- tqdm
|
||||||
|
- numpy
|
||||||
|
- pandas
|
||||||
|
- matplotlib
|
||||||
|
- quantstats
|
||||||
|
- pytest
|
||||||
|
- wandb
|
||||||
|
- pandas-ta
|
||||||
- pip
|
- pip
|
||||||
- pip:
|
- pip:
|
||||||
- black
|
- black
|
||||||
- fracdiff
|
- fracdiff
|
||||||
- diskcache
|
- diskcache
|
||||||
- matplotlib
|
|
||||||
- numpy
|
|
||||||
- quantstats
|
|
||||||
- pytest
|
|
||||||
- wandb
|
|
||||||
- python-dotenv
|
- python-dotenv
|
||||||
- tscv
|
|
||||||
- tqdm
|
|
||||||
- pandas-ta
|
|
||||||
- alphalens-reloaded
|
|
||||||
- vectorbt
|
- vectorbt
|
||||||
- pandera[mypy]
|
- pandera[mypy]
|
||||||
- binance_historical_data
|
- binance_historical_data
|
||||||
|
- alphalens-reloaded
|
||||||
|
|
||||||
prefix: /usr/local/anaconda3/envs/quant
|
prefix: /usr/local/anaconda3/envs/quant
|
||||||
|
|||||||
+14
-1
@@ -1,5 +1,5 @@
|
|||||||
from models.sklearn import SKLearnModel
|
from models.sklearn import SKLearnModel
|
||||||
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
|
from sklearn.ensemble import RandomForestClassifier
|
||||||
from .base import Model
|
from .base import Model
|
||||||
|
|
||||||
default_feature_selector_classification = SKLearnModel(
|
default_feature_selector_classification = SKLearnModel(
|
||||||
@@ -75,6 +75,19 @@ def get_model(model_name: str) -> Model:
|
|||||||
SKLearnModel(LGBMClassifier(n_jobs=-1, max_depth=20, random_state=1))
|
SKLearnModel(LGBMClassifier(n_jobs=-1, max_depth=20, random_state=1))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
elif model_name == "HyperOpt":
|
||||||
|
from hpsklearn import HyperoptEstimator
|
||||||
|
from hyperopt import tpe
|
||||||
|
|
||||||
|
return set_name(
|
||||||
|
SKLearnModel(
|
||||||
|
HyperoptEstimator(
|
||||||
|
algo=tpe.suggest,
|
||||||
|
trial_timeout=300,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
elif model_name == "AutoML":
|
elif model_name == "AutoML":
|
||||||
from supervised.automl import AutoML
|
from supervised.automl import AutoML
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user