-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJob_submit.py
More file actions
28 lines (24 loc) · 811 Bytes
/
Copy pathJob_submit.py
File metadata and controls
28 lines (24 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
Example code for submitting an MVO backtest as a job to the supercomputer.
Note that to actually submit the job you need to change dry_run to false.
Also note that you need to fill in your own project_root and byu_email.
"""
from sf_backtester import BacktestConfig, BacktestRunner, SlurmConfig
slurm_config = SlurmConfig(
n_cpus=8,
mem="32G",
time="03:00:00",
mail_type="BEGIN,END,FAIL",
max_concurrent_jobs=30,
)
backtest_config = BacktestConfig(
signal_name="satv_z",
data_path="/home/msch2022/SATV/satv_z_alphas.parquet",
gamma=50,
project_root="/home/msch2022/SATV",
byu_email="msch2022@byu.edu",
constraints=["ZeroBeta", "ZeroInvestment"],
slurm=slurm_config,
)
backtest_runner = BacktestRunner(backtest_config)
backtest_runner.submit(dry_run=False)