Horizon returns

Forward-return labels over a fixed horizon: horizon_returns builds the non-overlapping h-bar forward return of a price/level series — the supervised target consumed by the factor-evaluation metrics (fynance.metrics.factor) and by objective-aligned training.

horizon_returns(prices, h, *[, overlapping])

Forward return over a fixed horizon h, strictly causal.