Documentation
Skip to content

Book Guide

The public companion repository at revision d2edec54b1c7a6a9d7a97d8129eb05db4491e1eb provides the teaching files below. Every linked path was checked against that revision's Git tree. These notebooks explain methods and often use their own data and dependencies. None of the Chapter 14 teaching notebooks below imports ml4t.models; run the library's small examples for its API.

Latent factors and factor forecasts

Public book file What it does Related library task
IPCA notebook Manually teaches characteristic-dependent betas and factor forecasts. Fit a latent-factor pipeline with IPCAModel and a separate forecaster.
Risk-premium PCA notebook Manually teaches pricing-aware factor extraction. Choose a latent-factor model with RPPCAModel.
Conditional autoencoder notebook Manually builds a neural conditional factor model. Choose a latent-factor model with CAEModel; the library requires deep.
Case-study insights notebook Illustrates analysis of stored case-study results, not a first API example. Hand results downstream.

The book's case-study library bridge does import ml4t.models for PCA, IPCA, CAE, SDF, and SAE runs. It is case-study integration code with data and registry prerequisites, not a standalone quickstart.

SDF and direct prediction

Public book file What it does Related library task
Adversarial SDF notebook Manually teaches phase-aware SDF training. Estimate SDF weights with StochasticDiscountFactorModel.
Supervised autoencoder notebook Manually teaches a direct supervised predictor. Predict asset signals with SAEModel.

These neural notebooks need PyTorch and book data. Their full training runs are longer than the small CPU examples in this site's task guides. The book's targets and splits may also differ from the synthetic examples; results are not directly comparable.

Portfolio learning

Public book file What it does Related library task
Deep portfolio optimization Illustrates a related neural allocation workflow, without calling this library. Learn portfolio weights.
VLSTM portfolio Manually teaches variable selection and sequence allocation. Learn portfolio weights with LSTMPortfolioModel.
DeePM regime robustness Manually teaches a related DeePM architecture; it is not an exact library implementation. Learn portfolio weights with DeepPortfolioModel.

Portfolio notebooks use book-specific data and longer neural training. Start with the library's linear CPU example for an observable result.

Data and downstream boundaries

The library's data contracts preserve timestamps and asset identity. Integration converts predictions and weights to frames for ml4t-diagnostic and ml4t-backtest. The Chapter 14 case-study insights notebook illustrates analysis after model runs, but it does not replace those packages' guides or APIs.

The Quickstart is the first runnable library workflow.