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
pip install "east-py-datascience[scipy]"

# Multiple extras
pip install "east-py-datascience[scipy,sklearn,xgboost]"

# All extras
pip install "east-py-datascience[all]"

When using a git dependency in pyproject.toml:

"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.73

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.73
File Size Uploaded
elaraai_east_py_datascience-1.0.73.tar.gz 749.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for elaraai-east-py-datascience 1.0.73
File
elaraai_east_py_datascience-1.0.73-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
elaraai_east_py_datascience-1.0.73-cp313-cp313-win32.whl CPython 3.13 CPython 3.13 Windows x86-32 Details
elaraai_east_py_datascience-1.0.73-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
elaraai_east_py_datascience-1.0.73-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
elaraai_east_py_datascience-1.0.73-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details
elaraai_east_py_datascience-1.0.73-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
elaraai_east_py_datascience-1.0.73-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details
elaraai_east_py_datascience-1.0.73-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
elaraai_east_py_datascience-1.0.73-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
elaraai_east_py_datascience-1.0.73-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details
elaraai_east_py_datascience-1.0.73-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
elaraai_east_py_datascience-1.0.73-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details
elaraai_east_py_datascience-1.0.73-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
elaraai_east_py_datascience-1.0.73-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
elaraai_east_py_datascience-1.0.73-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details

Total release size: 4.4 MB

Release files / elaraai_east_py_datascience-1.0.73.tar.gz

Download URL elaraai_east_py_datascience-1.0.73.tar.gz
Size 749.7 kB
Tags Source
SHA-256 checksum
How to use checksums
959005daeec6a390a9967d7f8fc86eda21ec212961207360c7d5faca537ffdae
BLAKE2b-256 checksum
How to use checksums
3524cd209a9ba8bbca5c97ef9c79b859c1db4e4ed9840378b174e120b923f630
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL elaraai_east_py_datascience-1.0.73-cp313-cp313-win_amd64.whl
Size 245.3 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
1632919a076df7e69efc655cce48d4a32d7dd65d4aa1dddaa12cdb39e881468f
BLAKE2b-256 checksum
How to use checksums
9f4bde6ad68e4576d3ecff5a5bda0c42d123c2113578ce5b1f4938261a19b10f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL elaraai_east_py_datascience-1.0.73-cp313-cp313-win32.whl
Size 242.3 kB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
468a3afb854d04037cb4bce0450207d39d888a13d3f8adbf30ee20af257d5635
BLAKE2b-256 checksum
How to use checksums
0c2714d7112ee2211af2dd755eded1710052743cff9d9fa42eb117b1460f5eda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL elaraai_east_py_datascience-1.0.73-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 242.8 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e24001920677e69ebba61b948bc8344c81ad8623a3ea755c4ed8f5adb3d46048
BLAKE2b-256 checksum
How to use checksums
1570f535ca05497b0feafdc94439a658d81076dba5b80e95a2db480cfb7ce839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

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

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

Download URL elaraai_east_py_datascience-1.0.73-cp313-cp313-macosx_10_13_x86_64.whl
Size 241.5 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
77ed0cc5e6847515ead38e4fff33ebb119bf2ca835682b028bff693d3174a8a5
BLAKE2b-256 checksum
How to use checksums
04802bc47739fbfa1da29227aacf3b4d42d28dac5de1c2270ff209ca607b6fb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL elaraai_east_py_datascience-1.0.73-cp312-cp312-win_amd64.whl
Size 245.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
d793df4de43e1d3b5d53a64048c566e49ceb9cdd210c063e4fd3b1b74a79f4b9
BLAKE2b-256 checksum
How to use checksums
5d8ebede4952d8c2cfebf1282637c27babad9446f8c0e587809b00e359aa284c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL elaraai_east_py_datascience-1.0.73-cp312-cp312-win32.whl
Size 242.4 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
63fe57546c9e6f48e3a0dcc9fd5b692479f8fa12ddd11dc3d10445191cea8fbb
BLAKE2b-256 checksum
How to use checksums
6c4623d585c6c1901c3e22697288c16fb69e421ee8e716a46d0d4d2f2e7122f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL elaraai_east_py_datascience-1.0.73-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 242.8 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
65d90b6fa262813421814ca2377e43d052a9f6b37a817fde356b6aa35193387b
BLAKE2b-256 checksum
How to use checksums
beab15cc1cfd9a22188e5b36cdf09596a87e97382cfe1e753f24e7e5b120df0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL elaraai_east_py_datascience-1.0.73-cp312-cp312-macosx_11_0_arm64.whl
Size 240.8 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b970d0a86861d3cc3389cdf1da8b8af1573d444b6b0551859317cb65d754f890
BLAKE2b-256 checksum
How to use checksums
f07c3bdbfacff2b63d10f8ef6c0641f2106a87397869ab89a708f19f33b48950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL elaraai_east_py_datascience-1.0.73-cp312-cp312-macosx_10_13_x86_64.whl
Size 241.5 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
0cdd19ef915714e8f1b65f1f2defef4c66260420355693d27ab045ed2fef52bb
BLAKE2b-256 checksum
How to use checksums
84e911d50f91bd1566ba5192797ea1fec382074146530047550327e60ae690f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / elaraai_east_py_datascience-1.0.73-cp311-cp311-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.73-cp311-cp311-win_amd64.whl
Size 245.1 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
13ea9524bafbdfc9bc38f6731cc00a0c998c3400513336fb17d176c466f96947
BLAKE2b-256 checksum
How to use checksums
85b4641520063cf1d54d2fb4a488936e5769e0b866559885a728057d8ed844b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / elaraai_east_py_datascience-1.0.73-cp311-cp311-win32.whl

Download URL elaraai_east_py_datascience-1.0.73-cp311-cp311-win32.whl
Size 242.2 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
92ef988efc42feb260164a3dead3cab83b17da12e1f252de0e0e6bd0ad55d35b
BLAKE2b-256 checksum
How to use checksums
7d9b12fb5ccc43fd27e4d8de7f6943f12eb888bb4a329400f74fbce0df3cbaac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / elaraai_east_py_datascience-1.0.73-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.73-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 242.7 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
eb06c1c41e1588d19be099eb874b6da32671a0f703261bc57cdecb53a17951e9
BLAKE2b-256 checksum
How to use checksums
2ca71581bb0aaf48c045be3276db3c225252c1cb761763585ee71ec3702a226d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / elaraai_east_py_datascience-1.0.73-cp311-cp311-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.73-cp311-cp311-macosx_11_0_arm64.whl
Size 240.6 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
07c283d4591a256c1bfe961fcafd3b3e7d808bca19a4fa7a7969aca647dea327
BLAKE2b-256 checksum
How to use checksums
f63b1fd5f8d4ef652a49b1de68eb47337ff1c33f812b477fca42cb621b4d8b21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / elaraai_east_py_datascience-1.0.73-cp311-cp311-macosx_10_9_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.73-cp311-cp311-macosx_10_9_x86_64.whl
Size 241.3 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
950e9ead4f88d9445ccb69669c85e6122c7fe10109613bc546f9970c2b076d33
BLAKE2b-256 checksum
How to use checksums
1e784bbd8e0c56bcfe121c150b4afc95e44f9655beba8556a9ca96deb16feb82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.0.73 This release

16 release files

1.0.9

16 release files

1.0.8

16 release files

1.0.7

16 release files

1.0.6

16 release files

1.0.5

16 release files

1.0.4

10 release files

1.0.3

10 release files

1.0.2

10 release files

1.0.1

10 release files

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