Machine Learning Library
Machine-learning models explained from first principles. The point of this section is to show that I understand model logic, not just how to call a library function.
Every model page answers the same nine questions:
- What problem does this model solve?
- What assumptions does it make?
- What data does it need?
- How does it learn?
- What are its strengths?
- What are its weaknesses?
- How could it apply to markets?
- What does the Python code look like?
- How would I explain it to a supervisor?
Model pages are added one at a time. The map below is the plan.
Foundation models
Linear regression · logistic regression · decision trees · random forests · XGBoost · LightGBM · support vector machines · K-means clustering · Principal Component Analysis · Gaussian Mixture Models.
Deep learning
Neural networks · activation functions · backpropagation · CNNs · RNNs · LSTMs · transformers · attention · embeddings.
Quant-specific machine learning
Feature engineering for returns · walk-forward validation · time-series cross-validation · avoiding data leakage · overfitting in trading systems · model explainability · SHAP values · regime-aware modelling.