Closes #MASTER-RESET-024 - Implement layout, performance stats, and quant ML integration

This commit is contained in:
Antigravity Agent
2026-06-17 18:38:54 +02:00
parent 776a41f159
commit 71b7683370
11 changed files with 5469 additions and 458 deletions

View File

@@ -300,6 +300,36 @@ This document tracks all modifications, npm packages, active compilation states,
* **Active Bugs**: None.
* **Type Checker Status**: Verified 100% clean type verification (`npx tsc --noEmit` returns exit code 0).
---
## [2026-06-17] - Radical UI Re-Layout, Time-Conversion & Logical Accuracy Overhaul (#ISSUE-024-OVERHAUL)
### Added
* **Full-Width Layout Expansion**: Destroyed the cramped dual-column split inside [CryptoDemo.tsx](file:///c:/Users/jannr/.gemini/antigravity/scratch/investment-sandbox/components/modules/crypto/CryptoDemo.tsx). Removed the adjacent "ECONOMETRIC FEEDBACK LOOP SPEC" text box and restructured both the "Active Learning Feedback Loop" and the "Walk-Forward Ensemble Radar / Basis Arbitrage Matrix" into centered, full-width containers spanning 100% screen width.
* **Time Countdown Conversion Helper**: Implemented a `formatRemainingTime` utility function that automatically parses raw countdown seconds into localized human-readable time strings (e.g., "Verbleibend: 1 Tag, 19 Std").
* **Interactive Calibration Explanation**: Mounted an informational toggle in the Walk-Forward Radar header exposing detailed math calibration definitions for the Hit Ratio Counter and Bayesian Confidence variables.
* **Accordion Row Toggle Matrix**: Refactored the Active Learning Feedback Loop table with a dedicated "Log Date/Time" column and replaced the aggregate accuracy indicator with three independent columns (`T+1 Acc`, `T+5 Acc`, `T+10 Acc`). Embedded a `React.Fragment` row toggle showing an expandable grid of all 5 models' directional probabilities and success/failure green checkmarks or red crosses.
* **MLP Backlog Deck Comment**: Ingested warning comments block `# R&D BACKLOG: MLP OVERFITTING DECK` above MLPClassifier instantiation in [pipeline.py](file:///c:/Users/jannr/.gemini/antigravity/scratch/investment-sandbox/backend/core/pipeline.py).
### Active Bugs / Compile Status
* **Active Bugs**: None.
* **Type Checker Status**: Verified 100% clean type verification (`npx tsc --noEmit` returns exit code 0).
---
## [2026-06-17] - Master Reset: Layout, Performance Stats & Quant ML Integration (#MASTER-RESET-024)
### Added
* **Global Performance Metrics Panel (#ISSUE-024-STATS)**: Mounted a glassmorphic performance dashboard tab underneath the Active Learning Feedback Loop table in [CryptoDemo.tsx](file:///c:/Users/jannr/.gemini/antigravity/scratch/investment-sandbox/components/modules/crypto/CryptoDemo.tsx). Implemented mathematical hooks parsing the historical `forecasts` log array to compute Section A (Horizon Efficiency: cumulative successes and rates for T+1, T+5, and T+10 with NaN% division guards) and Section B (Estimator Hit Distribution: 5-row fractional matrix isolating individual predictive hits and accuracy rates).
* **Intermarket & Sentiment Features (#ISSUE-025-CORE)**: Added daily data ingestion routines in [pipeline.py](file:///c:/Users/jannr/.gemini/antigravity/scratch/investment-sandbox/backend/core/pipeline.py) fetching Nasdaq Composite (`^IXIC`), Gold Spot (`GC=F`), VIX (`^VIX`), and Crypto Fear & Greed Index (from Alternative.me REST API, normalized to 0-100). Implemented stationary log return preprocessing and structured alignment using `ffill()` and `bfill()` to resolve weekend data gaps.
* **Feature Selection Routing Gateway (#ISSUE-025-CORE)**: Appended a `SelectFromModel` Random Forest selector block in [pipeline.py](file:///c:/Users/jannr/.gemini/antigravity/scratch/investment-sandbox/backend/core/pipeline.py) that extracts top-performing features based on importance thresholds before feeding data to the non-linear SVM and MLP models, shielding them from intermarket noise.
* **Type Safety Enforcement**: Resolved LaTeX unescaped syntax compilation deadlocks in [CryptoDemo.tsx](file:///c:/Users/jannr/.gemini/antigravity/scratch/investment-sandbox/components/modules/crypto/CryptoDemo.tsx) and verified a 100% clean build.
### Active Bugs / Compile Status
* **Active Bugs**: None.
* **Type Checker Status**: Verified 100% clean type verification (`npx tsc --noEmit` returns exit code 0).