Installation¶
Use this page when you want to install ml4t-engineer, verify the package surface,
and then move directly into the first workflow.
Requirements¶
- Python 3.12, 3.13, 3.14, or 3.15
- Polars 2.0+
The published 0.2.0 release supports these Python versions and the calendar argument.
Published 0.1.6
supports Python 3.12-3.14 and does not accept the new calendar argument. Use its
version-matched quick start
for that release.
Install from PyPI¶
If you standardize on uv, uv pip install ml4t-engineer is equivalent.
Install from Source¶
Run the examples with the created environment, for example uv run --no-sync python.
Optional Dependencies¶
TA-Lib (for validation)¶
Some indicators can be validated against TA-Lib. The ta extra requires TA-Lib 0.8.2
or later in the 0.8 series, whose wheels include the native library and support Python 3.15:
Use the upstream installation guide
when your platform requires a source build. Comparisons must declare matching moving-average
types: Engineer's APO/PPO default remains SMA (matype=0), while TA-Lib 0.8 defaults to EMA.
Feature store¶
The store extra adds DuckDB and PyArrow; the core quick start does not need it.
Our Python 3.15 qualification used DuckDB 1.5.6 source builds on Linux, macOS and Windows.
If no matching wheel is available, install the
upstream native build prerequisites
before enabling the extra. Source builds need a C++ toolchain and can take tens of minutes.
Within the source checkout, enable the extra and verify both imports:
uv sync --no-dev --extra store
uv run --no-sync python -c "import duckdb; import ml4t.engineer.store; print(duckdb.__version__)"
Statistical diagnostics¶
find_optimal_d() and fdiff_diagnostics() use Statsmodels for the augmented
Dickey-Fuller test:
The core ffdiff() transform does not require this extra.
Optional ML dependencies¶
The ml extra installs LightGBM and SHAP:
On macOS, LightGBM also needs the OpenMP runtime. Install it before importing the ML
dependencies, including when using the dev or all extras:
See the LightGBM Python installation guide for native dependency details.
Verify Installation¶
from ml4t.engineer import feature_catalog
# Check available features
all_features = feature_catalog.list()
print(f"Total features: {len(all_features)}")
print(f"Categories: {feature_catalog.categories()}")
This prints the features and categories available in your installed release.
Next Steps¶
- Read Quickstart for the first feature-computation workflow.
- Read the Book Guide if you are coming from the book or case studies.
- Use the API Reference once you need exact object locations.