Installation#
milia needs Python 3.12 or later. The package is published on PyPI as pundamilia and imported as milia.
pip install pundamilia # core: detectors, clusterers, validation, retrieval
pip install 'pundamilia[all]' # every extra below
Extras#
The core install has no heavy dependencies. Each extra adds one family of methods, and a method that needs an extra says which one when you call it.
Extra |
Adds |
|---|---|
|
figures in lets-plot and matplotlib, and Great Tables |
|
DTW and soft-DTW k-means, k-Shape (tslearn) |
|
Optuna pipeline search, UMAP and PaCMAP |
|
Tucker embeddings (tensorly) |
|
Chronos-2 sequence embeddings |
|
PELT and binary segmentation (ruptures) |
|
SHAP explanations of Isolation Forest flags |
|
Diebold-Mariano and Model Confidence Set comparisons |
Check the install#
import milia
print(milia.__version__)
print(milia.available("detector"))