mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-20 06:18:08 +00:00
feat(Sweep): updated primary model sweep config (#140)
This commit is contained in:
+2
-1
@@ -5,7 +5,7 @@ from sklearn.tree import DecisionTreeClassifier
|
|||||||
from sklearnex.neighbors import KNeighborsRegressor, KNeighborsClassifier
|
from sklearnex.neighbors import KNeighborsRegressor, KNeighborsClassifier
|
||||||
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
|
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
|
||||||
from sklearnex.svm import SVR, SVC
|
from sklearnex.svm import SVR, SVC
|
||||||
from sklearn.naive_bayes import GaussianNB
|
from sklearn.naive_bayes import GaussianNB, MultinomialNB
|
||||||
from sklearn.neural_network import MLPRegressor, MLPClassifier
|
from sklearn.neural_network import MLPRegressor, MLPClassifier
|
||||||
from sklearn.ensemble import AdaBoostRegressor, RandomForestRegressor, ExtraTreesRegressor, AdaBoostClassifier, GradientBoostingClassifier, ExtraTreesClassifier
|
from sklearn.ensemble import AdaBoostRegressor, RandomForestRegressor, ExtraTreesRegressor, AdaBoostClassifier, GradientBoostingClassifier, ExtraTreesClassifier
|
||||||
from sklearnex.ensemble import RandomForestClassifier
|
from sklearnex.ensemble import RandomForestClassifier
|
||||||
@@ -51,6 +51,7 @@ model_map = {
|
|||||||
KNN= SKLearnModel(KNeighborsClassifier()),
|
KNN= SKLearnModel(KNeighborsClassifier()),
|
||||||
CART= SKLearnModel(DecisionTreeClassifier(max_depth=15, random_state=1)),
|
CART= SKLearnModel(DecisionTreeClassifier(max_depth=15, random_state=1)),
|
||||||
NB= SKLearnModel(GaussianNB()),
|
NB= SKLearnModel(GaussianNB()),
|
||||||
|
MNB = SKLearnModel(MultinomialNB()),
|
||||||
AB= SKLearnModel(AdaBoostClassifier(n_estimators=15)),
|
AB= SKLearnModel(AdaBoostClassifier(n_estimators=15)),
|
||||||
RF= SKLearnModel(RandomForestClassifier(n_jobs=-1, max_depth=20, random_state=1)),
|
RF= SKLearnModel(RandomForestClassifier(n_jobs=-1, max_depth=20, random_state=1)),
|
||||||
SVC = SKLearnModel(SVC(kernel='rbf', C=1e3, probability=True, random_state=1)),
|
SVC = SKLearnModel(SVC(kernel='rbf', C=1e3, probability=True, random_state=1)),
|
||||||
|
|||||||
+12
-16
@@ -1,5 +1,5 @@
|
|||||||
program: run_sweep.py
|
program: run_sweep.py
|
||||||
method: bayes
|
method: grid
|
||||||
project: price-forecasting
|
project: price-forecasting
|
||||||
name: Level-1 models
|
name: Level-1 models
|
||||||
metric:
|
metric:
|
||||||
@@ -20,15 +20,13 @@ parameters:
|
|||||||
expanding_window_meta_labeling:
|
expanding_window_meta_labeling:
|
||||||
value: False
|
value: False
|
||||||
n_features_to_select:
|
n_features_to_select:
|
||||||
values: [10, 20, 30]
|
value: 50
|
||||||
distribution: categorical
|
|
||||||
dimensionality_reduction:
|
dimensionality_reduction:
|
||||||
value: True
|
value: True
|
||||||
sliding_window_size_primary:
|
sliding_window_size_primary:
|
||||||
values: [180, 280, 380, 480, 580]
|
value: 380
|
||||||
distribution: categorical
|
|
||||||
sliding_window_size_meta_labeling:
|
sliding_window_size_meta_labeling:
|
||||||
value: 1
|
value: 380
|
||||||
retrain_every:
|
retrain_every:
|
||||||
values: [10, 20, 30]
|
values: [10, 20, 30]
|
||||||
distribution: categorical
|
distribution: categorical
|
||||||
@@ -37,25 +35,23 @@ parameters:
|
|||||||
method:
|
method:
|
||||||
value: 'classification'
|
value: 'classification'
|
||||||
no_of_classes:
|
no_of_classes:
|
||||||
values: ['two', 'three-balanced', 'three-imbalanced']
|
value: 'two'
|
||||||
distribution: categorical
|
|
||||||
forecasting_horizon:
|
forecasting_horizon:
|
||||||
value: 1
|
value: 1
|
||||||
load_non_target_asset:
|
load_non_target_asset:
|
||||||
values: [True, False]
|
value: True
|
||||||
distribution: categorical
|
|
||||||
log_returns:
|
log_returns:
|
||||||
value: True
|
value: True
|
||||||
index_column:
|
index_column:
|
||||||
value: 'int'
|
value: 'int'
|
||||||
primary_models:
|
primary_models:
|
||||||
values: [["LR_two_class"], ["LDA"], ["KNN"], ["CART"], ["NB"], ["AB"], ["RF"]]
|
values: [['LR_two_class'], ['SVC'], ['LDA'], ['KNN'], ['CART'], ['MNB'], ['NB'], ['AB'], ['RF'], ['XGB_two_class'], ['LGBM']]
|
||||||
distribution: categorical
|
distribution: categorical
|
||||||
meta_labeling_models:
|
meta_labeling_models:
|
||||||
value: []
|
value: ["LGBM", "LR_two_class"]
|
||||||
own_features:
|
own_features:
|
||||||
values: [['single_mom', 'date_days'], [], ['level_1', 'date_days'], ['date_days', 'level_2']]
|
value: ['date_days', 'level_2', 'lags_up_to_5']
|
||||||
distribution: categorical
|
|
||||||
other_features:
|
other_features:
|
||||||
values: [[], ['level_1'], ['level_2']]
|
value: ['level_2', 'lags_up_to_5']
|
||||||
distribution: categorical
|
exogenous_features:
|
||||||
|
value: ['standard_scaling']
|
||||||
Reference in New Issue
Block a user