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. 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.110

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.110
File Size Uploaded Provenance Actions
elaraai_east_py_datascience-1.0.110.tar.gz 3.9 MB Without provenance Details for elaraai_east_py_datascience-1.0.110.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for elaraai-east-py-datascience 1.0.110
File Actions
elaraai_east_py_datascience-1.0.110-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for elaraai_east_py_datascience-1.0.110-cp313-cp313-win_amd64.whl
elaraai_east_py_datascience-1.0.110-cp313-cp313-win32.whl CPython 3.13 CPython 3.13 Windows x86-32 Details for elaraai_east_py_datascience-1.0.110-cp313-cp313-win32.whl
elaraai_east_py_datascience-1.0.110-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.28+ x86-64, Linux glibc 2.17+ x86-64 Details for elaraai_east_py_datascience-1.0.110-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
elaraai_east_py_datascience-1.0.110-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.110-cp313-cp313-macosx_11_0_arm64.whl
elaraai_east_py_datascience-1.0.110-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.110-cp313-cp313-macosx_10_13_x86_64.whl
elaraai_east_py_datascience-1.0.110-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for elaraai_east_py_datascience-1.0.110-cp312-cp312-win_amd64.whl
elaraai_east_py_datascience-1.0.110-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details for elaraai_east_py_datascience-1.0.110-cp312-cp312-win32.whl
elaraai_east_py_datascience-1.0.110-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.28+ x86-64, Linux glibc 2.17+ x86-64 Details for elaraai_east_py_datascience-1.0.110-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
elaraai_east_py_datascience-1.0.110-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.110-cp312-cp312-macosx_11_0_arm64.whl
elaraai_east_py_datascience-1.0.110-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.110-cp312-cp312-macosx_10_13_x86_64.whl

Total release size: 6.4 MB

Release files / elaraai_east_py_datascience-1.0.110.tar.gz

Download URL elaraai_east_py_datascience-1.0.110.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
98025b53ba94922fa67fa35c4ed10d3fb3216c0bb7e55e24ead15f0c2d427da3
BLAKE2b-256 checksum
How to use checksums
46c67aa33baa734b905c487a1984314e20e08b4f0d81bf7e10970b0446288bd7
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.110-cp313-cp313-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.110-cp313-cp313-win_amd64.whl
Size 247.9 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
01e455ce60282c1655607588667a60b0e077252ee59f343b0669445f331c95b5
BLAKE2b-256 checksum
How to use checksums
79382382a29fe422a27e18e64209cf919e39eec417847a0dc2d7dcfa62fea344
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.110-cp313-cp313-win32.whl

Download URL elaraai_east_py_datascience-1.0.110-cp313-cp313-win32.whl
Size 245.0 kB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
c1a52e62af48a492525769790b9a689b98c5bc2204730be22c3761a90849425a
BLAKE2b-256 checksum
How to use checksums
79a31f4c78ddb9ee4240370c741a8fc085f45a71f819e97a1a00c772dda8af44
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.110-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.110-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 245.5 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7dc276b52afa597e1ef38ab974173ad1ff6f695cf05350f63555c3ba75191d13
BLAKE2b-256 checksum
How to use checksums
fc3b40d4e5bf8b4069cf0cea9e107f41cbc11b2ad1fbac74b86bb88d47b8b549
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.110-cp313-cp313-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.110-cp313-cp313-macosx_11_0_arm64.whl
Size 243.5 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3873fbe6d6add77add098f567e98fa0f6143584b59d06fdc34e3a21ed4c56b30
BLAKE2b-256 checksum
How to use checksums
f635585bf6a0b04ef153c1ffbf0d3fe7c8a4f155ef749efa4d4292440f4bd7ee
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.110-cp313-cp313-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.110-cp313-cp313-macosx_10_13_x86_64.whl
Size 243.9 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
96f95a179ad451ceeca8ee253737e28ad184f23f4bbf0ca76db5824d72de61a3
BLAKE2b-256 checksum
How to use checksums
d3714b05e251576f16b8c4dc70023e33fcf26b80c0da8da432649aba65414283
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.110-cp312-cp312-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.110-cp312-cp312-win_amd64.whl
Size 248.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
5c7a8fa6a29d6218400dc3d791bb867c96f70dae9668ea8d05bdf9ba41274b34
BLAKE2b-256 checksum
How to use checksums
5b88ffa7c2c739fae2c0a471ff81ae65d4772517ff4599fe79ff9ba71f2f1aba
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.110-cp312-cp312-win32.whl

Download URL elaraai_east_py_datascience-1.0.110-cp312-cp312-win32.whl
Size 245.0 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
7319d6d318750079ea133ef19308fba26a52fb126ac581dd7354e5533d838a15
BLAKE2b-256 checksum
How to use checksums
63aa4fc89453d88f3dd72293da23c2a6f7d0c6eac38d6a53a0b5c918aa3e3ba6
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.110-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.110-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 245.5 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c1f9f6fe98e6d0acd5c15415be679683c88dce9ab888636cd8bbdb2ec3d9fb9d
BLAKE2b-256 checksum
How to use checksums
a9193b80300ec1e8350c0afa078affc2d8455ceff8cb0cf9adb427e8df91fdda
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.110-cp312-cp312-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.110-cp312-cp312-macosx_11_0_arm64.whl
Size 243.5 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6e82af55132b71a0c15249c07a0db08e59a2f08ab790f81422a45adffae2c280
BLAKE2b-256 checksum
How to use checksums
9419c6b080762f3ebbd45fe06d7b5858d0bc1f03a6acf1f34a8fc42f00600a9d
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.110-cp312-cp312-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.110-cp312-cp312-macosx_10_13_x86_64.whl
Size 243.9 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
31e370a2b4e4c44d3bc874308fca5db6b709a1d512260d810387c1d4cfa798f5
BLAKE2b-256 checksum
How to use checksums
3cdee8769b689c68c3c11aa85ee903694fc889ef7e3bc9236bc4be9534d9f21d
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.110

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.110 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