mirror of
https://github.com/webclinic017/drift.git
synced 2026-07-28 11:17:47 +00:00
b1c04afb13
* refactor(Naming): use `primary_models` & `meta_labeling_models` * refactor(Naming): using primary * meta_labeling across config and in pipeline * feat(Pipeline): added back Ensemble models * fix(Pipeline): compiler error * fix(Config): typo * chore(Pipeline): removed unused averaging step * revert the changes in discretizing * chore(Pipeline): remove sharpe improvement logging * fix(Pipeline): ensemble predictions should be a pd.Series instead of a DataFrame * fix(Pipeline): discard unnecessary ensemble_probabilities * fix(Pipeline): fixes regarding various meta-labeling ensemble bugs * fix(Reporting): use the new naming convention * fix(Reporting): use the right variable * feat(Sweep): new sweep for ensemble models * fix(Sweep): config reference * fix(Config): simplified dev config * fix(Models): use the faster LR model * fix(Models): use LGBM in the meta-labeling model for speed * fix(Selection): always use the first model for feature selection, commented out caching from select_features() as it's close to redundant in terms of speed
39 lines
797 B
Python
39 lines
797 B
Python
# #%%
|
|
# import pandas as pd
|
|
# import pandas_ta as ta
|
|
# from config.config import get_default_ensemble_config
|
|
# from config.preprocess import preprocess_config
|
|
# from data_loader.load_data import load_data
|
|
|
|
# # %%
|
|
# model_config, training_config, data_config = get_default_ensemble_config()
|
|
# model_config, training_config, data_config = preprocess_config(model_config, training_config, data_config)
|
|
|
|
# data_config['target_asset'] = data_config['assets'][0]
|
|
# X, y, target_returns = load_data(**data_config)
|
|
# # %%
|
|
# X.ta.donchian()
|
|
|
|
|
|
# # %%
|
|
# X.ta.ema()
|
|
# # %%
|
|
# X.ta.adjusted = "ADA_USD_returns"
|
|
|
|
# # %%
|
|
# X.ta.sma(length=10)
|
|
|
|
# # %%
|
|
# X
|
|
# # %%
|
|
# X.ta.categories
|
|
|
|
# # %%
|
|
# ind_list = X.ta.indicators(as_list=True)
|
|
|
|
# # %%
|
|
# ind_list
|
|
# # %%
|
|
# X.ta.ao('ADA_USD_returns', length=10)
|
|
# # %%
|
|
# ta.ao() |