Files
drift/run_multi_asset_pipeline.py
T
Mark Aron Szulyovszky b5ddee8dce feat(HPO): added run_hpo script (#237)
* feat(HPO): added `run_hpo` script

* fix(Linter): ran

* feat(HPO): removed any reference to sweep (superseeded by optuna)

* fix(HPO): optimize for sharpe

* fix(Config): removed glassnode data, save trials from hpo

* feat(Labelling): added three-balanced method works again

* fix(BetSizing): set the correct class labels

* fix(HPO): powerset should return what's expected, added two new normalization methods

* fix(Linter): ran

* fix(DataLoader): sort the dataframe when fetching data

* fix(Config): only take z-score of other assets
2022-03-15 14:43:16 +01:00

32 lines
1.0 KiB
Python

from run_pipeline import run_training, setup_config
from config.types import RawConfig
from data_loader.collections import data_collections
from reporting.reporting import report_results
from config.presets import get_default_config
def run_multi_asset_pipeline(
project_name: str, with_wandb: bool, raw_config: RawConfig
):
collection = data_collections["fivemin_crypto"]
for asset in collection:
print(f"# Predicting asset: {asset.file_name}\n")
raw_config.target_asset = asset.file_name
wandb, config = setup_config(project_name, with_wandb, raw_config)
pipeline_outcome = run_training(config)
report_results(
pipeline_outcome.directional_training.training.stats,
pipeline_outcome.get_output_stats(),
pipeline_outcome.get_output_weights(),
config,
wandb,
)
if __name__ == "__main__":
run_multi_asset_pipeline(
project_name="price-prediction",
with_wandb=False,
raw_config=get_default_config(),
)