Installation¶
Basic Installation¶
Install trend_classifier from PyPI:
Or with uv:
Optional Dependencies¶
trend_classifier has optional extras for extended functionality:
PELT Algorithm¶
For the PELT change-point detection algorithm (via ruptures):
Hyperparameter Optimization¶
For automatic parameter tuning with Optuna:
Machine Learning¶
For scikit-learn based features:
All Extras¶
Install everything:
Development Installation¶
For contributing to trend_classifier:
This sets up:
- Virtual environment with uv
- All development dependencies
- Pre-commit hooks
Verify Installation¶
import trend_classifier
print(trend_classifier.__version__)
# Check available detectors
from trend_classifier import list_detectors
print(list_detectors())
Expected output:
Requirements¶
- Python 3.10+
- numpy >= 1.21.0
- pandas >= 1.3.0
- matplotlib >= 3.5.0
- pydantic >= 2.0.0