Add make docs commands for html build

This commit is contained in:
Melvin Alvarez
2026-02-09 18:31:14 +01:00
parent 7a9ab20b89
commit 74fbbd369b
12 changed files with 255 additions and 65 deletions
+11
View File
@@ -20,6 +20,17 @@ states = model.predict(returns)
print(np.unique(states, return_counts=True))
```
### With time-series helpers
```python
from optimizr import prepare_for_hmm_py
features = prepare_for_hmm_py(prices, lag_periods=[1, 5, 20])
hmm = HMM(n_states=3).fit(features, n_iterations=120)
```
Use rolling Hurst/half-life from `timeseries_utils` as additional features for richer regime classification.
## Notes
- Uses Rust backend when available; falls back to Python.
- `fit` runs Baum-Welch; `predict` runs Viterbi.