npm install
npm run buildMake sure merged_dataset.csv is in the project root.
# Best option for crypto (recommended)
npm run train -- --enhanced --returns
# Or try standard training
npm run train- Check console for metrics
- Open
validation_results.htmlin browser
Good Results:
- MAPE: 20-30%
- R²: 0.3-0.5
- Predictions follow general trend
Acceptable Results:
- MAPE: 30-40%
- R²: 0.1-0.3
- Some prediction errors
Note: 30% error is normal for crypto next-day prediction due to high volatility.
| Command | Description | Best For |
|---|---|---|
npm run train |
Standard ensemble | Baseline comparison |
npm run train -- --enhanced |
TEMPO with decomposition | Feature enrichment |
npm run train -- --enhanced --returns |
Predicts returns | Volatile crypto (recommended) |
For detailed instructions, see USER_GUIDE.md
Problem: "merged_dataset.csv not found"
- Fix: Make sure CSV file is in project root
Problem: High error (40%+)
- Fix: Try
--returnsflag:npm run train -- --enhanced --returns
Problem: Training too slow
- Fix: Reduce
rollingWindowinsrc/scripts/train.ts
- Start with return-based training - usually best for crypto
- Compare methods - try standard vs enhanced
- Check HTML results - visual charts help understand performance
- Be patient - training takes 10-30 minutes
Ready? Run: npm run train -- --enhanced --returns