Each module has its own optional Python dependencies to avoid installing unnecessary packages. Install only the extras you need:
# Single extra
uv pip install "elaraai-east-py-datascience[scipy]"
# Multiple extras
uv pip install "elaraai-east-py-datascience[scipy,sklearn,xgboost]"
# All extras, under the release's overrides (east-py-overrides.txt, below)
uv pip install --override east-py-overrides.txt "elaraai-east-py-datascience[all]"
all, or causal with shap, takes the release's overrides, and so uv.
econml, which causal installs, asks for a shap before 0.49, and that shap
cannot read the models of the xgboost the extras install (could not convert string to float). The release overrides it (shap>=0.51.0). pip takes no
overrides: installed with pip, these extras resolve, and
Shap.treeExplainerCreate fails on every XGBoost model. Any other extras
install with pip as with uv.
Python 3.12 or later. xgboost 3.4, whose NCCL library is the CUDA 13 one
torch uses, needs it. Give your project's requires-python a floor of 3.12
too: uv locks for every Python a project admits, so a project that admits 3.11
is locked to an earlier release of this package, one that took 3.11.
The , and extras pin torch and
pytorch-lightning exactly, at the versions the release was tested with. Ask
for torch through them, and name no torch of your own:
torch is pinned.
torch
lightning
all
dependencies = ["elaraai-east-py-datascience[torch,lightning]"] # not "torch", "pytorch-lightning"
Your lock then holds the torch from PyPI that the release's py-datascience
image holds, so an e3 task that runs on a rack over that image is not sent
torch and its NVIDIA libraries. A pin with no local label is met by every
local label, so a project that takes torch from a PyTorch index locks that
index's build (2.15.0+cpu, 2.15.0+cu130), which is not the image's, and is
sent it. A project that needs another torch leaves the extras out and lists
torch itself.
torch and xgboost share one NCCL library. The extras ask for xgboost 3.4 or
later, whose NCCL library is nvidia-nccl-cu13, the one torch pins. An
earlier xgboost asks for nvidia-nccl-cu12, which installs the same file, and
with it on top import torch fails (undefined symbol: ncclCommResume): a
project that names xgboost itself keeps it at 3.4 or later. An environment
that held both, from an earlier xgboost beside this torch, loses the file they
share when uv removes xgboost's: put torch's back once, with uv sync --reinstall-package nvidia-nccl-cu13.
Each release ships the settings its packages were tested with, in
@elaraai/e3-core (tier/): east-py-constraints.txt, every third-party
version of this workspace's lock, each pin with the platforms it is for, and
east-py-overrides.txt. A project npm create @elaraai/e3 scaffolds carries
them already, in a marked block of its root [tool.uv] table, which
npm create @elaraai/e3@<version> -- --update replaces with that release's.
In any other project, to hold a distribution at the release's version, put
its pins under [tool.uv] constraint-dependencies in your workspace root, each
as name==version ; marker: the pin and its marker, and none of the line's
trailing \, --hash lines or # via notes. Keep every pin of the name and
its marker, or one platform is held at another's version:
The overrides go under override-dependencies, as above. With the causal
and shap extras together, the override (shap>=0.51.0) is what gives you a
shap that reads current xgboost models.
Bayesian linear regression, hierarchical models, multi-layer joint estimation, posterior analysis
Causal Inference
Module
Description
Use Cases
Causal
One declarative causal experiment (Causal.experiment) over DoWhy / EconML / PyALE internals, plus Causal.designValidation (statsmodels power)
Naive vs adjusted effect, confounder balance, propensity overlap, placebo/E-value robustness, and an honesty verdict (refuses when the data can't support an answer); and the real controlled-trial recipe that would confirm it — sample size, split, match-on categories, and a power curve
Simulation
Module
Description
Use Cases
Simulation
Economic ontology simulation via DES
Simulating economic resources, events, and processes; single deterministic runs, Monte Carlo trajectories
Explainability
Module
Description
Use Cases
Shap
SHAP values for model interpretation
Feature importance, model explanations, debugging predictions
Documentation
See USAGE.md for detailed API reference with examples.
Development
npm run build # Compile TypeScript
npm run test # Run test suite
npm run lint # Check code quality
Claude Code plugin
The East ecosystem also ships a Claude Code plugin — East language skills, example search, and preemptive diagnostics for East code — installed separately from the elaraai marketplace:
East C: C11 native runtime for executing East IR. Distributed via npm (launcher + per-platform optional dependencies) and as tarballs on each GitHub Release.
@elaraai/east-c-cli: npm launcher — installs the matching native binary as an optional dependency
east-c: Core runtime — type system, IR interpreter, builtins, serialization (Beast2, JSON, CSV, East text)
east-c-std: Console, FileSystem, Fetch, Crypto, Time, Path, Random
east-c-cli: CLI for running East IR programs natively
East Python: Python runtime, standard platform, I/O, and data-science platform functions. Published to PyPI.
east-py: Core Python runtime — type system, IR compiler, 212+ builtins, Cython-accelerated hot paths
east-py-std: Console, FileSystem, Fetch, Crypto, Time, Path, Random
East is developed by Elara AI Pty Ltd, an AI-powered platform that creates economic digital twins of businesses that optimize performance. Elara combines business objectives, decisions and data to help organizations make data-driven decisions across operations, purchasing, sales and customer engagement, and project and investment planning. East powers the computational layer of Elara solutions, enabling the expression of complex business logic and data in a simple, type-safe and portable language.