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

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.84
File Size Uploaded
elaraai_east_py_datascience-1.0.84.tar.gz 921.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for elaraai-east-py-datascience 1.0.84
File
elaraai_east_py_datascience-1.0.84-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
elaraai_east_py_datascience-1.0.84-cp313-cp313-win32.whl CPython 3.13 CPython 3.13 Windows x86-32 Details
elaraai_east_py_datascience-1.0.84-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
elaraai_east_py_datascience-1.0.84-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
elaraai_east_py_datascience-1.0.84-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.84-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
elaraai_east_py_datascience-1.0.84-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details
elaraai_east_py_datascience-1.0.84-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.84-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
elaraai_east_py_datascience-1.0.84-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.84-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
elaraai_east_py_datascience-1.0.84-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details
elaraai_east_py_datascience-1.0.84-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.84-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
elaraai_east_py_datascience-1.0.84-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details

Total release size: 4.6 MB

Release files / elaraai_east_py_datascience-1.0.84.tar.gz

Download URL elaraai_east_py_datascience-1.0.84.tar.gz
Size 921.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7483292a15196eb5802e7cc31aaceb547eb2b6d772e1aea35e38235483d9dfd1
BLAKE2b-256 checksum
How to use checksums
b8b7814facea9e40e7a7b0d53a2c88d3ce67a66bf4b60886c3fbf60451db1338
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.84-cp313-cp313-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.84-cp313-cp313-win_amd64.whl
Size 245.3 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
094cc5477413b7380d7e0d86069fd405ba7f74a1abdbba67cf0b5173d1efbbe8
BLAKE2b-256 checksum
How to use checksums
e3e425b275bfa0f4a8cdb75038d82a6b566504d16693a3d4e96dcaa17bafcdd8
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.84-cp313-cp313-win32.whl

Download URL elaraai_east_py_datascience-1.0.84-cp313-cp313-win32.whl
Size 242.3 kB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
3a389bcb1f78be37fda8827232aa3aaef09b6e1eb97f2144b23afd229164935e
BLAKE2b-256 checksum
How to use checksums
7f8b4ca7dc8b01c5c2e8067ec689f6c037f2c0ba62072c63ca84a89b6dc91a20
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.84-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.84-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
4a3ec0b02940509aebb6584361b087f681ec96c4872fdb49c5bec9823218454f
BLAKE2b-256 checksum
How to use checksums
0e6f7f137d0ac38bd0356c909fe827c6354990bf51c0d15ac548726490aea757
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.84-cp313-cp313-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.84-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
7d9f82e9c0d2cfe8e147082037c5462f099484a83469ec4d38f3e5ff605f0eaf
BLAKE2b-256 checksum
How to use checksums
faf4a555e63f1282afd7b33af8eab1350474f64e8ac3cd7721ad3a0b3451dc97
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.84-cp313-cp313-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.84-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
c81f6cc25ea2a58fe193c34535306d0f82c3a79a9c56e79584f3e834720c2ae1
BLAKE2b-256 checksum
How to use checksums
39de8243c673b7c38bfac6ec5eb629d26fae0f421431a5f3730fd49dfdbc2203
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.84-cp312-cp312-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.84-cp312-cp312-win_amd64.whl
Size 245.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
ae0a5062bb16685ba68e5fa7fd128c89201b94b46e704f792b5783ee039d7ed4
BLAKE2b-256 checksum
How to use checksums
f7c39d86921c9d03f409a0e28e8a72f601cc31f5af1416a22baca2a4f17dfbf8
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.84-cp312-cp312-win32.whl

Download URL elaraai_east_py_datascience-1.0.84-cp312-cp312-win32.whl
Size 242.4 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
2b7d4a83037528fe9b04725cae40193cbec93147d6362cf1c3c46aaa629ce454
BLAKE2b-256 checksum
How to use checksums
d6a13a3a612e4d169c7d7e9b153301700ff1d5d64c34e66681f07eb00f078453
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.84-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.84-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
e43d328b89e1876c87d6f2e33056a745c8af8a56f0070c3a27a02c1c1328a5dc
BLAKE2b-256 checksum
How to use checksums
a4283c5d714da112aec3f716f61bab04bbc672c12fe6c64525f136e49fde866a
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.84-cp312-cp312-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.84-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
6a7feca4fbad77cf86cdac9a54c859a9974a73d0a882ab4b8bccf32440ba7bb5
BLAKE2b-256 checksum
How to use checksums
0a6618e769e8e475de290c918929d9330bbc4cfe8f3f157bfd41e82d93e6b6e3
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.84-cp312-cp312-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.84-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
edbbe51d1afa0966dcee2959629abe2835d564cfde9624114aea96c577c2dda5
BLAKE2b-256 checksum
How to use checksums
e84bc7dadfabde6e48c1abfd2090268575d91afaf088dac4591de61187ac2026
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.84-cp311-cp311-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.84-cp311-cp311-win_amd64.whl
Size 245.1 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
78b665f8281b8ebde867d2ad53b96035c2a87676cda06ea16f2dbca1575759ba
BLAKE2b-256 checksum
How to use checksums
3ad43c24a956fd30a2aaae7e39dc94507d0649449d9c8aa422a66a101a179874
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.84-cp311-cp311-win32.whl

Download URL elaraai_east_py_datascience-1.0.84-cp311-cp311-win32.whl
Size 242.2 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
446ebae74d0b68202dba1dc14062b45cd69f35c9da7c6fc55736ec45198a4ab5
BLAKE2b-256 checksum
How to use checksums
ad51a4bb7bb30e185f59258c9934fb659021312a4060bfb33911ed8f9280374e
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.84-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.84-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
f8165742700a29d36721b4d13cc23255974ef3cbdaf9a8a14cb2dbcdc088f15c
BLAKE2b-256 checksum
How to use checksums
cc128a549abd6321db9d120ac55ce6681e36b6052330579a58b02c911b5d090f
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.84-cp311-cp311-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.84-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
6692216c79284ec63f48ef36c120746bb136ccc389168428fa5c63cbbff305d7
BLAKE2b-256 checksum
How to use checksums
4382ef4b6055e2ae056ad2160999216608031b94e45d9e4570a1fa022c8d130a
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.84-cp311-cp311-macosx_10_9_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.84-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
ff8455b886368a6983ca524c9b159d4a27c5de69ffa28e12df7e819aae453dbb
BLAKE2b-256 checksum
How to use checksums
2d067182d6bf73bed90b08b44c9e589e2b800a8ed37b8414012c258bb5588d74
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.84 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