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

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

Built distributions (wheels)

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

Total release size: 6.4 MB

Release files / elaraai_east_py_datascience-1.0.113.tar.gz

Download URL elaraai_east_py_datascience-1.0.113.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
182e093cf3251b6b93fb5f20f5ea7813d36e383291f3d0a00f6c74d8cf171c85
BLAKE2b-256 checksum
How to use checksums
95cf4c647fe9ba5a77f76ac501980782d250260e2e12b8570253554f96aa4cc4
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.113-cp313-cp313-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.113-cp313-cp313-win_amd64.whl
Size 248.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
6f4346cb2e975a3f4571c8a4c3585f4ddfe8f9bd6455019303d584220cb25e33
BLAKE2b-256 checksum
How to use checksums
46871b27d66721470896899ccd96ce614c80b0b25d37fd93ab1574e5691460b2
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.113-cp313-cp313-win32.whl

Download URL elaraai_east_py_datascience-1.0.113-cp313-cp313-win32.whl
Size 245.1 kB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
ca781e5ec6f3ad7cd2ca74845087dd8afbf2db84508cb9659c5ed3794dfaa68a
BLAKE2b-256 checksum
How to use checksums
75c1947bc655368d4e6639b52f39c27b553b8e20ecf0bc50392b3227088655a3
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.113-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.113-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
b86052901ad2daa23ecf43b3e7076271fc59539b8895edc5fba03417aaf06fd3
BLAKE2b-256 checksum
How to use checksums
34fd8e6303f81da210340635a1248b99769008421e25a897960795a1477d90ce
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.113-cp313-cp313-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.113-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
5aea8e88a65961e48a22837d4ae5130bba59d7e82de980a58569b0ca3a3849c0
BLAKE2b-256 checksum
How to use checksums
329e975c95d4a5f5411248a7d25ad27c0f57b2f9f03df5f3b238aff789123a2d
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.113-cp313-cp313-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.113-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
9ae1d1c596b9694c1220835b1ba8309d86eb83b7cc4b5e877c6a2f5641479fc5
BLAKE2b-256 checksum
How to use checksums
568d344f75e77f4be3fbbd1a530a2c607b8411bf0a31566b867528d31faa7572
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.113-cp312-cp312-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.113-cp312-cp312-win_amd64.whl
Size 248.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
ec84699aa039a73b250d18e36a074388fe720b5e24cab2d1d0afc15812e78f47
BLAKE2b-256 checksum
How to use checksums
8fd21a37d33e3d06e7620b432cc98fed6d33fd23af67f213ab6b71766d23a96c
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.113-cp312-cp312-win32.whl

Download URL elaraai_east_py_datascience-1.0.113-cp312-cp312-win32.whl
Size 245.1 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
f758d930770b922cf71353c8b7c5c001b5bf8da97a218aaf6db99eca9bbea687
BLAKE2b-256 checksum
How to use checksums
b6c2d7d04a836d1273096efb280cd8a066a90f326db4252ad455088de0469860
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.113-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.113-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
e82b0e51a5e685000ae476a36c4687119503bc2570fe16ac74d7939e6200bcd0
BLAKE2b-256 checksum
How to use checksums
0465fa50f476c445721faaffc656fc2b6bc59d16413977a190512857ccc2f6e8
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.113-cp312-cp312-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.113-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
6d49644b8210cb9922d80527866faf7db05078ac5773f7e5be8879487bd0bdfa
BLAKE2b-256 checksum
How to use checksums
9f0012d90c66b9d39bd982fcee09a2c71e0750a3bb01724005c223d15c46764c
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.113-cp312-cp312-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.113-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
90f2a90019ca40b495e658ff7f1590ccf607dc2ec3b467b5d4d802cffe882687
BLAKE2b-256 checksum
How to use checksums
effe5ddf3c67e18f679e1801733835e08e842ebb9db12d5ea6171ede12fb4e02
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.113

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