Spaces:
Running
Running
Commit History
16 days ago
-
Retrain ML models through 2026-10-27 (was 2026-07-24)
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5Holdout 2026-05-27 to 2026-10-27: INTRADAY dir 81%, 1D 45%, 3D 40%; q10/q90 coverage 87-91% (target ~90%). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>66fc4a7
-
Retrain ML models through 2026-07-24 (was 2026-07-10)
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 4.6351k rows · 2158 tickers · 2022-05-12 → 2026-07-24 Train ≤ 2026-02-19 · holdout 2026-02-24 → 2026-07-24 (36k rows) INTRADAY: dir_acc=82% (↑ from 81.5%), q90 coverage=88% 1D: dir_acc=44%, q90 coverage=90% 3D: dir_acc=41%, q90 coverage=91% Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>68dc5e0
-
ML: add indicator + Monte Carlo features, retrain model
Khanna, Videh Rakesh RakeshAdd 12 extra point-in-time features (Bollinger bandwidth/squeeze, Keltner & Donchian channel position, Stochastic %K, CCI, MFI, Williams %R, realized vol, and Monte-Carlo bootstrap hit-probability/excursion estimates), now the production default (opt-out ML_EXTRA_FEATURES=0). Shared helpers in features.py keep live inference and the training augmenter identical (no train/serve skew). Validated on the 5-month OOS holdout (research/ml_backtest.py, 38,376 rows): INTRADAY direction 71->82%, price-target hit 64->84%, est-high MAE 1.54->1.07; 1D/3D per-trade P&L +0.86->+1.02 / +1.29->+1.51 (PF 1.74->1.93 / 1.79->1.96), no regression. Retrained the committed 49-feature model. Adds research/augment_features.py (vectorized CSV augmenter reusing the shared feature helpers).c789230 -
ML confidence + honest relative-direction display
Khanna, Videh Rakesh Rakesh- Per-TF conf_hi: INTRADAY HIGH=0.72 (~85% dir acc, OOS 25k); 1D/3D HIGH disabled (conf_hi=1.01) since 75-85% is unreachable at those horizons (max proba ~0.63). - Record excess_labels in manifest; infer.py emits per-TF dir_basis. - UI: 1D/3D shown as OUTPERFORM/UNDERPERFORM (vs Nifty), not absolute BULLISH/BEARISH; ML/AI 'split' softened to 'different axes' for relative-vs-absolute calls. - Cache-buster v=20260723b.dffb9e9
-
ML model retrain + research updates + news/llm tweaks
Khanna, Videh Rakesh Rakesh- Retrain ml_predictor quantile/direction models + manifest - dataset/features/infer/train updates - Add research/ml_intraday_backtest.py + results; update ml selection/watchlist evals - llm_client and news_sentiment adjustments8af7f2e
-
Fix empty universe + full-market top picks; drop dead NSE price APIs
Khanna, Videh Rakesh RakeshUniverse (universe.py): - Source the WHOLE NSE market from NSE's official EQUITY_L.csv (~2,062 EQ stocks, all cap tiers incl. mid/small-caps) instead of Yahoo's top-500 screener, which is blocked on HF datacenter IPs (returned 0 -> empty universe -> top picks stuck 'Analysing...'). Chain: EQUITY_L -> Nifty-500 CSV -> Yahoo screener -> static fallback (nse_fallback_universe.py). - Persist cache to /data on HF (survives restarts). Top picks (top5_picker.py): - Scan draws from the whole market, capped at 700/run, ordered cache-first (data_sources.cached_tickers) + rotating cold tail so mid/small-caps are included and the market is swept over ~3 runs. Phase 1 is signals-only. Data sources (data_sources.py, app.py): - Remove dead NSE OHLCV API, NSE live-quote, and jugaad NSELive (all HTTP 403 bot-blocked even locally) to stop wasting a warmup+request per fetch. - OHLCV order simplified to yfinance-first. - Fix _is_price_fresh (was always-False via dead probes -> stop-loss ch…b0d9ebf