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

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

Built distributions (wheels)

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

Total release size: 6.4 MB

Release files / elaraai_east_py_datascience-1.0.111.tar.gz

Download URL elaraai_east_py_datascience-1.0.111.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
2983a6d3a25808c3f621cdc63463652f5f8d84e8ef5f93e319e75f2b5032653f
BLAKE2b-256 checksum
How to use checksums
5b395e04c14dbc66c59e7dc8066b077ae143aab58f771463248e4a776bb42b0d
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.111-cp313-cp313-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.111-cp313-cp313-win_amd64.whl
Size 247.9 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
623dcb54aeaadec38b2b316169ba3c12271d8f45a98129e164dd8ae539e2668c
BLAKE2b-256 checksum
How to use checksums
616bf83d567dad6fee780c1bdcbe35648d9801f9325b889efc1fe1b6d2022429
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.111-cp313-cp313-win32.whl

Download URL elaraai_east_py_datascience-1.0.111-cp313-cp313-win32.whl
Size 245.0 kB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
77ecfad0e48bb629dc54edd6f31400d57b9208eabbe79a93670d33328ad7f7c3
BLAKE2b-256 checksum
How to use checksums
81e60d0c7de3054ab65c70bc79cf9ca25a469f90c9e14fddd8bbbfc3be205d59
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.111-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.111-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
505f71102731a523a346a26207be03383d3a9416783d84da824f0157656d37dc
BLAKE2b-256 checksum
How to use checksums
9ba61d287133a1c625eaa72b855b9d008e8c9ec99e42b1d18194cc56a7e8e5db
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.111-cp313-cp313-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.111-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
d0a3b9535e653f4d2c5083ab93fdf9f09011456abc6771837e27d8537af98ec1
BLAKE2b-256 checksum
How to use checksums
5946e919267e4d1e8602694ed21c529ce0d87529ded812193440c2aa35012196
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.111-cp313-cp313-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.111-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
bc56fe35533663f1cbd619b211aab3b2145f5390576047cc9776184e0379c16b
BLAKE2b-256 checksum
How to use checksums
0a81c661d95c6bb63fa06b6a5cf9d4a628a35ccafa5e7efc2760a0267b199c40
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.111-cp312-cp312-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.111-cp312-cp312-win_amd64.whl
Size 248.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
760c8fe980acab6fa8f8107adbdf751b6060c026aca502af502c1a874a1213a9
BLAKE2b-256 checksum
How to use checksums
e5705d5e2daaf3e028eaeeda2aa64c11c5f5445a67d93c1787706bfd457f202d
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.111-cp312-cp312-win32.whl

Download URL elaraai_east_py_datascience-1.0.111-cp312-cp312-win32.whl
Size 245.0 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
770deb46b803c4fccfa81bf1c60f4bbb63789185148b93f64c30bbadbc387f11
BLAKE2b-256 checksum
How to use checksums
89d9651cdeb81c6a5ff3d146f479e8f3c391f89daf571706f1cd325532bf5766
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.111-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.111-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
3658cc1f67e24e0016072f8d386e44c43ce97bc85b58d4ae56b452400c1059ea
BLAKE2b-256 checksum
How to use checksums
5204fc84dc35b411fcf90dd0e313b6c3a13caf4e4b11347eb019930ce68e905c
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.111-cp312-cp312-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.111-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
71a1ace79d9478725f9816b673a2a921dc408f78fff01e9a020222aba288a458
BLAKE2b-256 checksum
How to use checksums
5ca3cbaa3911b78b593028ba0ed5b6f0e4d875f45efb77ff91b2f22c51ce7f7f
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.111-cp312-cp312-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.111-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
a88474f42b5c311e992f87166f4edcd16777a9475e489a43a442ce79878ae6bb
BLAKE2b-256 checksum
How to use checksums
917221c6582426d7391e04d9dd5d93c4069ab5758a252ce87c253d53f1eb1ee8
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.111

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