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

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.90
File Size Uploaded
elaraai_east_py_datascience-1.0.90.tar.gz 3.8 MB Details

Built distributions (wheels)

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

Total release size: 7.5 MB

Release files / elaraai_east_py_datascience-1.0.90.tar.gz

Download URL elaraai_east_py_datascience-1.0.90.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
d8c7240d09165b5980db0742ba779de867c2ec1d9dacf19a997c29af5ab05983
BLAKE2b-256 checksum
How to use checksums
91f97a01d623f10dab17e14e5d9f29bf18685cdbcd245537616f6e6bae50fc06
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.90-cp313-cp313-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.90-cp313-cp313-win_amd64.whl
Size 245.3 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
610e96b4f02dc3986406b5b5fd825f984767d8317b6180300e468b47d568009a
BLAKE2b-256 checksum
How to use checksums
5d2766c0ebd72c4fed85ecd6e6aff1023ccb45eb72fbe2d482b10c9d43d4b7fe
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.90-cp313-cp313-win32.whl

Download URL elaraai_east_py_datascience-1.0.90-cp313-cp313-win32.whl
Size 242.3 kB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
7742fea06db9c3faf1750ace855d2477a6460c5aa3456fac8ffac0e789a11e33
BLAKE2b-256 checksum
How to use checksums
2a81aeeb592f71975d8115dcdc616368a044c8a0d49cdca1750d2a5c0206a591
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.90-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.90-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
223a25beb625fc178b301707af5847986a59e1d5b5935332a218b051b598bb9f
BLAKE2b-256 checksum
How to use checksums
95549d3c03d8a03adfd2f46ff24c0c77eaa83c9b2a0089087442418acd3cc0bb
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.90-cp313-cp313-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.90-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
3ebb5e89a1f4d318280df3ddf73f30e6a3b29263956935be8635c9954e13a5cf
BLAKE2b-256 checksum
How to use checksums
27b4189f806a129abbf3e5c8c8936a701225fe2b098e48e54a53c605ce9d7b31
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.90-cp313-cp313-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.90-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
81d5b46c4ab7d037c4ea71e001988b8a081c6d101137206852ac6015bfc6d799
BLAKE2b-256 checksum
How to use checksums
a5da97809836d42dcda1bd0259745c0e7da314101444fb034fb7417793b21095
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.90-cp312-cp312-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.90-cp312-cp312-win_amd64.whl
Size 245.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
31509f75936df623729149b6be169fc4f16c6af77f137ab2fab76bdf7e025566
BLAKE2b-256 checksum
How to use checksums
fd7993eccaf4984fbdf6a88d24b13f0944f0fc3558d4c863ea98ea4348355c0f
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.90-cp312-cp312-win32.whl

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

Download URL elaraai_east_py_datascience-1.0.90-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
c78e9b31bd9101bc60c79f3b1bb1e58548cea53c7d1c132ddd0cc2992c445447
BLAKE2b-256 checksum
How to use checksums
1f54d330d44d5a419aca798eaa067599c21779fe8e8c0e9ceef787f008d59920
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.90-cp312-cp312-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.90-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
d78477a709b4e387b502a3a2a7deb24ce7d325ddd5f98697719dbc58fd39b9d0
BLAKE2b-256 checksum
How to use checksums
d426ef8cf20bbbc97ae5da45c0304aead1d45bc1d7b885be6bd3d7b36cd4c156
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.90-cp312-cp312-macosx_10_13_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.90-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
f71650f490490c9ea71d28d2d61526ffaae24d16bc5be54e880dd1aae7e041b7
BLAKE2b-256 checksum
How to use checksums
b8212f345338795d3f129aba544f684076a5034a736718dc28cdaefb1314d661
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.90-cp311-cp311-win_amd64.whl

Download URL elaraai_east_py_datascience-1.0.90-cp311-cp311-win_amd64.whl
Size 245.1 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
cde8f1227494a362ae1ca3a8b9c1debdf0eab4a138999d8cd1d8b99616c49221
BLAKE2b-256 checksum
How to use checksums
72c0ab6cc779067a17132467d27326b5201fd871b9581f6b3fa1aed4eedca65d
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.90-cp311-cp311-win32.whl

Download URL elaraai_east_py_datascience-1.0.90-cp311-cp311-win32.whl
Size 242.3 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
cecee5f6ad3bc880885f3ccc92892c28bdd8d4c97fe2edba269126155e156a44
BLAKE2b-256 checksum
How to use checksums
f56508f10732db52c13fa9c0c32f8cc3a00bfaf0ed7418d931a22665e6cf7cb7
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.90-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.90-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
a15529242bd0d7be384be11782878bf846fefd105dea887e7f331a593fabe8db
BLAKE2b-256 checksum
How to use checksums
77a9e77129176d10b1dd5399b94b2fd6aab66091a9b0c6f9d2e370dc4c5f46ff
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.90-cp311-cp311-macosx_11_0_arm64.whl

Download URL elaraai_east_py_datascience-1.0.90-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
187cf308d22cefe68e1299b34164e4e49473125cbb6142fd22dbb4e86ed5a12f
BLAKE2b-256 checksum
How to use checksums
30deab10c4f261e978a33360fea23d26c32870fb60a06d603053d6dfc2808945
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.90-cp311-cp311-macosx_10_9_x86_64.whl

Download URL elaraai_east_py_datascience-1.0.90-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
f2936e6b505dec0f5a33363dea52e20fc6b972c7e1419a8f7ebfca9de482c421
BLAKE2b-256 checksum
How to use checksums
def93e3ec330cce10c4a98aa18a5ece7c0c193773a840eecbf6648812af1a08c
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.90 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