Level 5 · 120–140 h
Machine learning and deep learning (Keras/PyTorch)
Financial machine learning under the rules of the domain: little signal, a lot of noise and non-stationary data. Labelling, leak-free validation and an honest comparison with simple baselines.
ML fundamentals applied to finance
5.1.1Why financial ML is different: low signal-to-noise ratio, non-stationarity, scarce and contested data.5.1.2Supervised, unsupervised and reinforcement learning; scikit-learn: pipelines, transformers, hyperparameter search.5.1.3Appropriate metrics, not just accuracy: economic metrics (signal Sharpe, P&L after costs).
Feature engineering
5.2.1Price and volume features and microstructure features: multi-horizon returns, volatility, normalised indicators, imbalance, VPIN.5.2.2Point-in-time fundamentals, macro, sentiment, alternative data.5.2.3Fractional differencing to preserve memory while achieving stationarity.5.2.4Normalisation without leakage (rolling statistics), cross-sectional rank transform.5.2.5Feature selection and importance: MDI, MDA, SFI, SHAP; feature clustering.
Labelling and sampling
5.3.1Fixed-horizon labelling and its problems.5.3.2The triple-barrier method.5.3.3Meta-labeling: primary model and secondary model for sizing or filtering.5.3.4Sample uniqueness, weights by overlap and by return; sequential bootstrapping.5.3.5Event-based sampling (CUSUM filter).
Validation for financial series
5.4.1Why random k-fold fails.5.4.2Purged K-Fold with embargo; CPCV.5.4.3Walk-forward with retraining; expanding versus rolling windows.5.4.4Backtest of the ML signal with costs; Deflated Sharpe over the experiments run.
Classical models
5.5.1Regularised regressions (Ridge, Lasso, Elastic Net); logistic.5.5.2Trees, Random Forest, bagging.5.5.3Gradient boosting: XGBoost, LightGBM, CatBoost, the workhorses for tabular data.5.5.4Hyperparameter tuning with Optuna, and the risk of overfitting the validation.5.5.5Unsupervised: PCA, clustering (regimes, asset grouping), autoencoders.5.5.6Cross-sectional ranking models (learning to rank) for stock selection.
Deep learning with Keras 3
5.6.1Multi-backend Keras 3 (JAX, TensorFlow, PyTorch): configuration, functional and subclassing API.5.6.2MLPs for financial tabular data; regularisation (dropout, weight decay, early stopping).5.6.31D CNNs and LSTM/GRU for sequences; windows, scaling and leakage.5.6.4Callbacks, custom losses (for example, Sharpe-based), export and inference.
Deep learning with PyTorch
5.7.1Tensors, autograd,nn.Module, Dataset and DataLoader, training loop; GPU and MPS,torch.compile, Lightning.5.7.2Time series architectures: TCN, N-BEATS and N-HiTS, PatchTST, iTransformer; transformers with attention and patching.5.7.3Probabilistic models: quantile loss, DeepAR, confidence intervals.5.7.4Graph neural networks (GNNs) for relationships between assets (introduction).5.7.5End-to-end portfolio optimisation (differentiable layers, Sharpe loss).
Time series foundation models
5.8.1What they are: massive pre-training and zero-shot forecasting.5.8.2Families: Chronos, Chronos-Bolt and Chronos-2, TimesFM-2.5, Moirai-2.0, TiRex, TimeGPT; Kronos, pre-trained on OHLCV.5.8.3Practical use: zero-shot inference, covariates, fine-tuning, probabilistic forecasting.5.8.4Evidence in finance: in a 2026 benchmark (arXiv:2606.27100) on the daily returns of AAPL, AMZN, GOOG, JPM and META, Moirai-2.0 and TimesFM-2.5 achieved the best average ranks (2.9 and 3.1), but their improvements over the random walk were “small and sparse”. Another study found that strategies built on these models perform considerably worse than specialised reference models. Lesson: useful for volatility, covariates and series with structure; scepticism about forecasting returns directly.5.8.5Lab: foundation model versus GARCH and LightGBM in forecasting realised volatility.
Reinforcement learning
5.9.1MDPs, Q-learning, policy gradient, PPO, SAC; Gymnasium environments and reward design with costs.5.9.2Realistic applications: optimal execution, market making, dynamic hedging.5.9.3Why RL tends to overfit in directional trading; FinRL as a critical reference.
Interpretability, robustness and model risk
5.10.1SHAP, partial dependence, stability of importances.5.10.2Data drift and concept drift, regime detection.5.10.3Ensembles, signal combination and synthetic data (GANs and diffusion: state of the art and limits).