add v2
This commit is contained in:
1 parent
421050292d
commit
ce36cba8e9
2978 files changed
+35317
-85
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# Discovery v2: free entry time, 7 markets (pre-registered in holdout_prereg.md)
|
||||
|
||||
Runs on one machine in ~5–10 minutes on an i9-12900K (24 threads). Needs ~20 GB RAM at peak with 24 workers.
|
||||
|
||||
## Setup (Fedora)
|
||||
```bash
|
||||
unzip v2_search.zip && cd v2_search
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## Run
|
||||
```bash
|
||||
./run_all.sh
|
||||
```
|
||||
If memory is tight, use fewer workers: `WORKERS=12 ./run_all.sh`. If it stops partway, just rerun; finished frames are kept.
|
||||
|
||||
## Send back
|
||||
- `out/discovery_results.csv`
|
||||
- `out/lockbox_results.csv`
|
||||
- `out/log.txt`
|
||||
|
||||
## Please don't
|
||||
- Change any settings or rerun with different parameters. The candidate selection and the lockbox test are mechanical and pre-registered.
|
||||
Rerunning variants would turn the lockbox into a second discovery set.
|
||||
- Open `out/frames/` to look for patterns before sending the results back (same reason).
|
||||
|
||||
## What it does
|
||||
1. `step1_build.py`: for 7 markets × 43 entry times (every 30 min, 18:30 → 15:30 ET), one row per day: ~90 features known at entry,
|
||||
plus long/short bracket P&L (eval 2000/3000 and funded 2000/1640 brackets, realistic and harsh fills, same engine as the main backtest).
|
||||
2. `step2_search.py`: walk-forward on 2016 → mid-2025 only (yearly retrain, gradient-boosted trees plus a logistic check).
|
||||
Picks the top 8 cells by the pre-registered rule into `out/candidates.json`.
|
||||
3. `step3_lockbox.py`: scores those 8 once on July 2025 → now, and on 2010–14 where the market exists.
|
||||
Reference in new issue
Block a user