One-click full training pipeline · force-reruns bootstrap, auto-train, calibrators · reports each step
Runs every training path the brain has in sequence:
Historical Bootstrap (real daily bars × 48 syms) →
Auto-Trainer (only with paid Finnhub daily candles) →
Continuous-Learner resolve (settles any pending journal entries) →
Calibrator + IsotonicCalibrator + RegimeCalibrator fits.
Without a key this is one request to the desk's Worker plus two to Coinbase, a few seconds in all. With paid Finnhub candle access, about a minute (paced to stay under 60 calls a minute). Safe to re-run anytime.
📚 What each step does
1. Historical Bootstrap — pulls real daily bars for 48 symbols (no key: the Worker's ~40 finished sessions per equity in one request, Coinbase for BTC/ETH; a Finnhub key with paid candle access: ~250 days), reconstructs 22-feature vectors per (sym, day), labels by 5-day direction (±1%), feeds the global model + every calibrator. Expected output: several hundred rows on the Worker bars, up to ~11,000 with paid candles. (A browser can never read Stooq, which sends no CORS headers; pass 339 retired it.)
2. Auto-Trainer — needs 60+ sessions of OHLCV, which only Finnhub's paid daily candles provide in a browser; without them it makes no request and says so. With them it trains on rows not seen yet (deduped by date): main model + per-horizon ensemble (short/mid/long).
3. Continuous-Learner resolve — walks the captured-but-unresolved journal, resolves any entries whose horizon has elapsed, trains on the freshly-labeled pairs.
4. Calibrators — refits Platt (Calibrator), Isotonic PAV (IsotonicCalibrator), and per-regime calibration (RegimeCalibrator) on the populated (predicted, actual) pools so the next prediction is honest immediately.