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

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.81
File Size Uploaded
elaraai_east_py_datascience-1.0.81.tar.gz 891.5 kB Details

Built distributions (wheels)

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

Total release size: 4.5 MB

Release files / elaraai_east_py_datascience-1.0.81.tar.gz

Download URL elaraai_east_py_datascience-1.0.81.tar.gz
Size 891.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eae260e115a125ed10c6c4f9ac102afed6bb98e2f66e447fc31c9d8f54efa8e1
BLAKE2b-256 checksum
How to use checksums
556d299ace0d000038196c8eaceadc4c26b1fc7452bc4ab27d6a66d7d6b34c10
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.81-cp313-cp313-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.81-cp313-cp313-win_amd64.whl
Size 245.3 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
9a1b4f46f50bfb179fa7840930f49a8cacb6c3cc9be6cd3b0eaaddb58be870ab
BLAKE2b-256 checksum
How to use checksums
244bc5ff613550c0121d2c33aa5923088c2e19b6e687d07953b84bce262d687e
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.81-cp313-cp313-win32.whl

Download URL elaraai_east_py_datascience-1.0.81-cp313-cp313-win32.whl
Size 242.3 kB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
16e29220fa59d31601c1eb94aa69b3cd10fa4709aaa0120b30d333ad2203000d
BLAKE2b-256 checksum
How to use checksums
d04f74f60802a92f4b1ca499a85601bad750d18febd95b00246dc0e1ce321d27
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.81-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.81-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
e043b1268b8e378aa23cb9bdce6b007b36f97a62afee0cb0c63ca402a6771728
BLAKE2b-256 checksum
How to use checksums
551747fce93f39daaa275a758f719a1e316e2a3aceeed3d83af4f697dc1c1e13
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.81-cp313-cp313-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.81-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
5d5526a05f11989bc01d2d9e0ab4758bf14f6ae078aea75b8688839f1bdc38d2
BLAKE2b-256 checksum
How to use checksums
a5dee1240bb16204fa89b98e592fc75d4823e0f01bd883f1f74128e5050d833f
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.81-cp313-cp313-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.81-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
134f2d879142f7daa65f6773ffa998cbf563a17c34bf16aedc38344d3c72b853
BLAKE2b-256 checksum
How to use checksums
961499cf950f1ee7a7013c5e4149065f6ea986d918aa936fa4532d8980d92026
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.81-cp312-cp312-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.81-cp312-cp312-win_amd64.whl
Size 245.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
a35d599d8373c455e7862ae0c43a66ce7e007c235193f3a8dd5e841f033062b8
BLAKE2b-256 checksum
How to use checksums
973c3f521066e0ec96eed085d4382090993bc906292ac489108be53dc872e7bf
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.81-cp312-cp312-win32.whl

Download URL elaraai_east_py_datascience-1.0.81-cp312-cp312-win32.whl
Size 242.4 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
38ee8ca2828ffec810be941fbcb4409c220e53a10de7eefa9b61fd55d60fd2cf
BLAKE2b-256 checksum
How to use checksums
1b89c1cd9661290bf9906d7c0c084e431e22234fe2da07bef69a8854d198874f
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.81-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.81-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
55c3e4486203bff646134c79826e281c9a3e4b9b57461b51b3460ccd7ae79ab6
BLAKE2b-256 checksum
How to use checksums
d302520f808d22265274ac30d7d03df1a37748711450951db5a1a97ec03599db
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.81-cp312-cp312-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.81-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
d35a983de0139f7885f6bf67c897a62567b1d681df67f2f22fbd7820e17b89e4
BLAKE2b-256 checksum
How to use checksums
29de3dde1c3a4556b958b7606136c84f07cf7bed6030f1a53330e905d27706a1
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.81-cp312-cp312-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.81-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
63719c8b9a7009654d8b223963f6f20d267dd961856dad45ddbbe72955f49239
BLAKE2b-256 checksum
How to use checksums
6da879c48bb808d1e144a47238501b8ee4fce6b2ec5722ba756a9d3a8ad9b4e1
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.81-cp311-cp311-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.81-cp311-cp311-win_amd64.whl
Size 245.1 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
d49fb8016603e37d79ba8db947ce1e2e7c0d1b6bde5061f0ce7a236e7654cd65
BLAKE2b-256 checksum
How to use checksums
a27100fd5b30523d6d32d5e2dd6ab88b9def5a5f8afb197fa5a6c2b8f7e06208
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.81-cp311-cp311-win32.whl

Download URL elaraai_east_py_datascience-1.0.81-cp311-cp311-win32.whl
Size 242.3 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
0d3b5a6631412c99dedfea98f5fca8a94845c8ba4ec903781cb94bb2ade3cef8
BLAKE2b-256 checksum
How to use checksums
2fe87c32eae0840b95a510287cc4a368cda2853945d6191d63ff22e5cc4f948c
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.81-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.81-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
061c42abb1dae2206796a6fcff58813f2e1c004a021d6c5372832eb50e5454b8
BLAKE2b-256 checksum
How to use checksums
92cbe448c86232ef8c680d05f98f8b37f09932e1da5e709dfa2213096f2499f2
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.81-cp311-cp311-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.81-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
ef35b232e094a62921c88d701eaf821cd988dcde293ba492d46064a0a20f73a6
BLAKE2b-256 checksum
How to use checksums
5cc48468a2810414b34ac3e612fed72b93d7d8ac5f8e04747506359f686af33e
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.81-cp311-cp311-macosx_10_9_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.81-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
b8b5ea9ac40423d1b340a8bf5af019abf5bf092f67edf72ec7986ca95fcd1650
BLAKE2b-256 checksum
How to use checksums
c29833ade1e3ec1304dd82da27cb8839761ba96f004f6d8852951332b13aebb4
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.81 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