Skip to main content

East Data Science

Data science and ML platform functions for the East language

TypeScript: AGPL-3.0 Python: BSL 1.1 Node Version

East Data Science provides machine learning and optimization platform functions for the East language.

Installation

npm install @elaraai/east-py-datascience @elaraai/east

Python Optional Dependencies

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.

torch is pinned. The torch, lightning and all 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:

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:

[tool.uv]
constraint-dependencies = [
  "numpy==2.3.5 ; platform_machine == 'x86_64' and sys_platform == 'darwin'",
  "numpy==2.4.4 ; platform_machine != 'x86_64' or sys_platform != 'darwin'",
]
override-dependencies = ["shap>=0.51.0"]

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.

When using a git dependency in pyproject.toml:

"elaraai-east-py-datascience[scipy] @ git+https://github.com/elaraai/east-workspace@main#subdirectory=libs/east-py/packages/east-py-datascience"
Module Extra Python Packages
MADS mads PyNomadBBO
Optuna optuna optuna
SimAnneal simanneal simanneal
Scipy scipy scipy, cloudpickle
Optimization (none) (core only — numpy)
GoogleOr google-or ortools
Sklearn sklearn scikit-learn, skl2onnx, onnxruntime, cloudpickle
XGBoost xgboost xgboost, cloudpickle
LightGBM lightgbm lightgbm, cloudpickle
NGBoost ngboost ngboost, cloudpickle
Torch torch torch, cloudpickle
GP gp scikit-learn, cloudpickle
Lightning lightning torch, pytorch-lightning, cloudpickle
Shap shap shap, cloudpickle
MAPIE mapie mapie, cloudpickle
ALNS alns alns
PyMC pymc pymc, cloudpickle
Simulation (none) (core only — numpy)
Causal causal dowhy, econml, PyALE, pandas, matplotlib, scikit-learn, cloudpickle

Quick Start

import { East, FloatType, variant } from "@elaraai/east";
import { MADS } from "@elaraai/east-py-datascience";

// Define objective function: minimize sum of squares
const objective = East.function([MADS.Types.VectorType], FloatType, ($, x) => {
    const x0 = $.let(x.get(0n));
    const x1 = $.let(x.get(1n));
    return $.return(x0.multiply(x0).add(x1.multiply(x1)));
});

// Optimize
const optimize = East.function([], MADS.Types.ResultType, $ => {
    const x0 = $.let([0.5, 0.5]);
    const bounds = $.let({
        lower: [-1.0, -1.0],
        upper: [1.0, 1.0],
    });
    const config = $.let({
        max_bb_eval: variant('some', 100n),
        display_degree: variant('some', 0n),
        direction_type: variant('none', null),
        initial_mesh_size: variant('none', null),
        min_mesh_size: variant('none', null),
        seed: variant('some', 42n),
    });

    return $.return(MADS.optimize(objective, x0, bounds, variant('none', null), config));
});

Modules

Optimization

Module Description Use Cases
MADS Derivative-free blackbox optimization using NOMAD algorithm Functions without derivatives, expensive evaluations, noisy/discontinuous objectives
Optuna Bayesian optimization with TPE sampler Hyperparameter tuning, mixed-type parameters, efficient search with few evaluations
SimAnneal Simulated annealing for discrete optimization TSP, scheduling, subset selection, knapsack, assignment problems
Scipy Scientific optimization and curve fitting Gradient-based minimization, curve fitting, interpolation, statistics
Optimization Iterative coordinate descent optimization Parameter tuning, sequential optimization across parameter groups
GoogleOr Google OR-Tools constraint programming, routing, LP, and graph algorithms CP-SAT, vehicle routing (TSP/VRP), linear/mixed-integer programming, min-cost flow, max flow, assignment, sparse min-cost assignment

Machine Learning

Module Description Use Cases
Sklearn Core ML utilities from scikit-learn N-way splits, preprocessing (Standard/MinMax/RobustScaler), encoding (Label/Ordinal), metrics, GMM clustering, multi-target regression
XGBoost Gradient boosting with XGBoost Regression, classification, feature importance, fast training
LightGBM Fast gradient boosting with leaf-wise growth Large datasets, high cardinality features, faster than XGBoost on big data
NGBoost Natural gradient boosting with uncertainty Probabilistic predictions, confidence intervals, uncertainty quantification
Torch Neural networks with PyTorch MLP regression/classification, deep learning, custom architectures
Lightning PyTorch Lightning neural networks MLP, autoencoder, conv1d, sequential, transformer architectures
GP Gaussian Process regression Small datasets, uncertainty quantification, Bayesian optimization surrogate
MAPIE Conformal prediction intervals Prediction intervals, prediction sets, uncertainty quantification

Bayesian Inference

Module Description Use Cases
PyMC Bayesian inference with PyMC 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:

# Inside Claude Code
/plugin marketplace add elaraai/east-workspace
/plugin install east@elaraai
# From a terminal
claude plugin marketplace add elaraai/east-workspace
claude plugin install east@elaraai

License

This package has different licenses for TypeScript and Python code:

TypeScript (type definitions): Dual AGPL-3.0 / Commercial

Python (runtime implementations): BSL 1.1 (Business Source License)

  • Non-production use (evaluation, testing, development) is free
  • Production use by or on behalf of for-profit entities requires a commercial license
  • Code becomes AGPL-3.0 four years after each release

See LICENSE.md for full details.

Commercial licensing: support@elara.ai

Ecosystem

  • East: Statically typed, expression-based language with serializable IR. Run portable logic across TypeScript, Python, C, and other runtimes.

    • @elaraai/east: Core language SDK with type system, expressions, and reference JS compiler
  • East Node: Node.js platform functions for I/O, databases, and system operations.

  • 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-py-io: SQLite, PostgreSQL, MySQL, MongoDB, Redis, S3, FTP, SFTP, XLSX, XML, compression
    • east-py-cli: CLI for running East IR programs in Python
    • east-py-datascience (PyPI) + @elaraai/east-py-datascience (npm): Optimization (MADS, Optuna, ALNS, GoogleOR), ML (XGBoost, LightGBM, NGBoost, PyTorch, Lightning, GP), Bayesian inference (PyMC), explainability (SHAP), conformal prediction (MAPIE)
  • East UI: Typed UI component definitions and React renderer, plus VS Code preview.

  • e3 — East Execution Engine: Durable execution engine for running East pipelines at scale. Git-like content-addressable storage, automatic memoization, reactive dataflow, real-time monitoring.

About Elara

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.


Developed by Elara AI Pty Ltd.


Developed by Elara AI Pty Ltd

Metadata

Release files for elaraai-east-py-datascience 1.0.112

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elaraai-east-py-datascience 1.0.112
File Size Uploaded Provenance Actions
elaraai_east_py_datascience-1.0.112.tar.gz 3.9 MB Without provenance Details for elaraai_east_py_datascience-1.0.112.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for elaraai-east-py-datascience 1.0.112
File Actions
elaraai_east_py_datascience-1.0.112-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for elaraai_east_py_datascience-1.0.112-cp313-cp313-win_amd64.whl
elaraai_east_py_datascience-1.0.112-cp313-cp313-win32.whl CPython 3.13 CPython 3.13 Windows x86-32 Details for elaraai_east_py_datascience-1.0.112-cp313-cp313-win32.whl
elaraai_east_py_datascience-1.0.112-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for elaraai_east_py_datascience-1.0.112-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
elaraai_east_py_datascience-1.0.112-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for elaraai_east_py_datascience-1.0.112-cp313-cp313-macosx_11_0_arm64.whl
elaraai_east_py_datascience-1.0.112-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details for elaraai_east_py_datascience-1.0.112-cp313-cp313-macosx_10_13_x86_64.whl
elaraai_east_py_datascience-1.0.112-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for elaraai_east_py_datascience-1.0.112-cp312-cp312-win_amd64.whl
elaraai_east_py_datascience-1.0.112-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details for elaraai_east_py_datascience-1.0.112-cp312-cp312-win32.whl
elaraai_east_py_datascience-1.0.112-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for elaraai_east_py_datascience-1.0.112-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
elaraai_east_py_datascience-1.0.112-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for elaraai_east_py_datascience-1.0.112-cp312-cp312-macosx_11_0_arm64.whl
elaraai_east_py_datascience-1.0.112-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details for elaraai_east_py_datascience-1.0.112-cp312-cp312-macosx_10_13_x86_64.whl

Total release size: 6.4 MB

Release files / elaraai_east_py_datascience-1.0.112.tar.gz

Download URL elaraai_east_py_datascience-1.0.112.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
93d96068931eea9ac34fa17500261a5163be4b5538a7ceb4fa22920755dfa3db
BLAKE2b-256 checksum
How to use checksums
7952572568cad42c8b1783988797ec90fd98a57e6bbe39e0573653ac79a6d74b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / elaraai_east_py_datascience-1.0.112-cp313-cp313-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.112-cp313-cp313-win_amd64.whl
Size 248.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
0288cdde3b9244f72ce3a460f3484e1757ec347d3c6923c5b950c889fed4ed20
BLAKE2b-256 checksum
How to use checksums
916371bceaf2c327d68dc77048756d26458c0ae4d9628106738e83b9e6e797c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / elaraai_east_py_datascience-1.0.112-cp313-cp313-win32.whl

Download URL elaraai_east_py_datascience-1.0.112-cp313-cp313-win32.whl
Size 245.1 kB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
7bead708cbd8560c2c34a5c6a989a06235a4797aaa59fec7546742e57b36ce88
BLAKE2b-256 checksum
How to use checksums
e48d802c36f38a1a0a59d5a98540ed69f7c2ca6af930435d461a39433bf7d115
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / elaraai_east_py_datascience-1.0.112-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.112-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 245.6 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
022089fcd8677b65586a76e8414543785482f55dbfe729114ce3ed389920ad87
BLAKE2b-256 checksum
How to use checksums
2cfaddcba128d9fd1b14bbb044a3dd488a52b6f5dafec57662ae9daa76fdcfb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / elaraai_east_py_datascience-1.0.112-cp313-cp313-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.112-cp313-cp313-macosx_11_0_arm64.whl
Size 243.6 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e37c2e4011834bfd01f6f3f42f73ef124f5c03e24848843fa57ee6f7307d872c
BLAKE2b-256 checksum
How to use checksums
d08daf096d4b6bd79614801ebe2daf468ee65113b78e4fc510bc4d0e01e284e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / elaraai_east_py_datascience-1.0.112-cp313-cp313-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.112-cp313-cp313-macosx_10_13_x86_64.whl
Size 244.0 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
a45d0c222ed7e928df98be37106b4d064ff2dc793451d81f4d2924f15258a26b
BLAKE2b-256 checksum
How to use checksums
f721f0a34b7b509ea1445eef29d2920f8ed1336c8c61d68a01d05232a95e4c4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / elaraai_east_py_datascience-1.0.112-cp312-cp312-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.112-cp312-cp312-win_amd64.whl
Size 248.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
dac00df0b773526f9e7005159e7b5ea31d39b80ce6d7145566e84aae4c8183ec
BLAKE2b-256 checksum
How to use checksums
388f971342f91bb178e2705fb9b87149cc4f7f0d74f36d48db39e1470818456b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / elaraai_east_py_datascience-1.0.112-cp312-cp312-win32.whl

Download URL elaraai_east_py_datascience-1.0.112-cp312-cp312-win32.whl
Size 245.1 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
3a9134659847141cc28cae020fc5f012b38de5b0a4d327f1192e63e6ede62bb8
BLAKE2b-256 checksum
How to use checksums
88b85bdb4751fa2eee9bdde35c7b8484642e5564d027eff5a2abfc4b6fe4cf80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / elaraai_east_py_datascience-1.0.112-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.112-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 245.6 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7f6304031a10c291b2c0afdb1bea0ce760071ad9b8916d4891bfb4b62acba7a0
BLAKE2b-256 checksum
How to use checksums
51f276fb3d7ca2358e401d5d9d96b005284d024ee67f433a7ee237071a734853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / elaraai_east_py_datascience-1.0.112-cp312-cp312-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.112-cp312-cp312-macosx_11_0_arm64.whl
Size 243.6 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d42d85681f05ec88630f5b41274c5fb7c3d2dc787dd23c7348d1043142a58daf
BLAKE2b-256 checksum
How to use checksums
5344ee5f058e9b13bdfe357ec5d94a31f7f51936f66f7bbb5fa6ced526f92461
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / elaraai_east_py_datascience-1.0.112-cp312-cp312-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.112-cp312-cp312-macosx_10_13_x86_64.whl
Size 244.0 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
c7ccd046ce630d7ccf90b22bdf373e972a3766d4af6fead38f1fa6c677627772
BLAKE2b-256 checksum
How to use checksums
e4651423a602d6dd34e270d779c2fbaf3ce560bb7de30ce62ddf84c8ac8f9e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for elaraai-east-py-datascience 1.0.112

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.112 This release

11 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page