mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-02 13:47:47 +00:00
6b26643ece
* feat(Transformations): removed feature-selection pre-processing step completely * fix(Core): removed unnecessary `original_X` * fix(Transformations): use the X_expanding_window to transform subsequent data * fix(RFE): should check for model correctly * fix(Config): only re-train the model every 40 timestamp * fix(MetaLabeling): pass in the correct X to meta-labeling step * fix(Transformation): PCA should at least keep as many features as sliding_window_size * feat(Transformations): cache transformations across the same asset * fix(Tests): missing preloaded_transformations arg * chore(Config): got rid of unnecessary 'classification_models' and 'regression_models' dictionary keys
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
program: run_sweep.py
|
|
method: grid
|
|
project: price-forecasting
|
|
name: Meta labelling
|
|
metric:
|
|
goal: maximize
|
|
name: sharpe
|
|
parameters:
|
|
primary_models_meta_labeling:
|
|
value: True
|
|
assets:
|
|
value: ['daily_crypto']
|
|
other_assets:
|
|
value: ['daily_etf']
|
|
exogenous_data:
|
|
value: ['daily_glassnode']
|
|
expanding_window_primary:
|
|
value: True
|
|
expanding_window_meta_labeling:
|
|
value: True
|
|
sliding_window_size_primary:
|
|
value: 380
|
|
sliding_window_size_meta_labeling:
|
|
values: [250, 300, 380]
|
|
distribution: categorical
|
|
n_features_to_select:
|
|
values: [40, 50, 60]
|
|
distribution: categorical
|
|
dimensionality_reduction:
|
|
value: True
|
|
retrain_every:
|
|
value: 20
|
|
scaler:
|
|
value: 'minmax'
|
|
method:
|
|
value: 'classification'
|
|
no_of_classes:
|
|
value: 'two'
|
|
forecasting_horizon:
|
|
value: 1
|
|
load_non_target_asset:
|
|
value: True
|
|
log_returns:
|
|
value: True
|
|
index_column:
|
|
value: 'int'
|
|
primary_models:
|
|
distribution: categorical
|
|
values:
|
|
- ["LDA", "LogisticRegression_two_class", "KNN", "SVC", "CART", "NB", "AB", "RFC", "XGB_two_class", "LGBM", "StaticMom"]
|
|
- ["LogisticRegression_two_class", "LDA", "NB", "RFC", "XGB_two_class", "LGBM", "StaticMom"]
|
|
- ["LogisticRegression_two_class", "LDA", "LGBM", "RFC", "XGB_two_class"]
|
|
meta_labeling_models:
|
|
value: ["LGBM", "LogisticRegression_two_class"]
|
|
own_features:
|
|
value: ['date_days', 'level_2', 'lags_up_to_5']
|
|
other_features:
|
|
value: ['level_2', 'lags_up_to_5']
|
|
exogenous_features:
|
|
value: ['z_score']
|