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.

Links

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elaraai_east_py_datascience-1.0.65.tar.gz (672.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

elaraai_east_py_datascience-1.0.65-cp313-cp313-win_amd64.whl (246.6 kB view details)

Uploaded CPython 3.13Windows x86-64

elaraai_east_py_datascience-1.0.65-cp313-cp313-win32.whl (244.3 kB view details)

Uploaded CPython 3.13Windows x86

elaraai_east_py_datascience-1.0.65-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (244.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

elaraai_east_py_datascience-1.0.65-cp313-cp313-macosx_11_0_arm64.whl (242.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

elaraai_east_py_datascience-1.0.65-cp313-cp313-macosx_10_13_x86_64.whl (243.2 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

elaraai_east_py_datascience-1.0.65-cp312-cp312-win_amd64.whl (246.7 kB view details)

Uploaded CPython 3.12Windows x86-64

elaraai_east_py_datascience-1.0.65-cp312-cp312-win32.whl (244.3 kB view details)

Uploaded CPython 3.12Windows x86

elaraai_east_py_datascience-1.0.65-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (244.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

elaraai_east_py_datascience-1.0.65-cp312-cp312-macosx_11_0_arm64.whl (242.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

elaraai_east_py_datascience-1.0.65-cp312-cp312-macosx_10_13_x86_64.whl (243.3 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

elaraai_east_py_datascience-1.0.65-cp311-cp311-win_amd64.whl (246.4 kB view details)

Uploaded CPython 3.11Windows x86-64

elaraai_east_py_datascience-1.0.65-cp311-cp311-win32.whl (243.9 kB view details)

Uploaded CPython 3.11Windows x86

elaraai_east_py_datascience-1.0.65-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (244.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

elaraai_east_py_datascience-1.0.65-cp311-cp311-macosx_11_0_arm64.whl (242.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

elaraai_east_py_datascience-1.0.65-cp311-cp311-macosx_10_9_x86_64.whl (243.0 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

Details for the file elaraai_east_py_datascience-1.0.65.tar.gz.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65.tar.gz
Algorithm Hash digest
SHA256 a6d7a884557fc57714b267f592b7da6819c8d500bd12b2ccd291abf9544089a0
MD5 7ed4b0f2f465c4c40679e264cbfc076c
BLAKE2b-256 996577992cae1f92584bb1b3972b74e7183898951958a2834d399bd701499ef5

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 29fe629b0ea3d18ea93a8ece5617037c14143393173ff8fe37c93d37f2299e8e
MD5 3071ac8495762e78e6e691ae18c08172
BLAKE2b-256 a6f2e37c5d26ee31ddcf2354ca8a56de3980db646a5a791a0bdc68fa87df3db5

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp313-cp313-win32.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 0c7e4bcdcf7244d91afda0c86f5f7d313628b6fa91a6c40d6560084dda4bffb6
MD5 ec66fd696117a1b0991ce3b971a8bfb0
BLAKE2b-256 0f6766ec15fecef658908164edfc69a2ceafa755d29b7291e6726462b3cb73b5

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 150a134dc295f384b65ee44e9aabe43b60995924c1d8423cd8f5377c5df06353
MD5 4c91dfbfcf1bbf01964e4cca9ac7ea89
BLAKE2b-256 8801f74ff2f8def73208012fbf4fdf3ba9f1edd4c95902b8747f37b054db7085

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a249990776cd1d8f435f1f46d9efcc3ae00a22877e90e0a3a4e81d92404e9d3f
MD5 2368a34b7a2c2feb7d32773b19bbb370
BLAKE2b-256 1eabb2c53070e2b19a96a55d74d9d581d4be6edc97efc94505999236a0ccd83b

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 3a6e78833f8cb9ce17304fec25dc8e82b63b7bb9111c7fcce0140c79f3f4c630
MD5 ba53c6aa0ee831a9786f792955d4c3bd
BLAKE2b-256 5145565b965497f110de55d8f75503b74af9efdb98aab926c9bac2911c0f4f24

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ce9c1a8973866ae1a40860dfdf8d99a0da1d95630da42a11561dedaf014a39b1
MD5 71d85005481ca7eea31c72db2dc77be8
BLAKE2b-256 36770d8d04c7ea9bcc979871d7d1ce3ba59082f9572cda051e32d4fee13967f9

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6c36def82760b539dfcd99398bdec7125bc8bd484bffc0654551bcf712b5c16d
MD5 7414e551c03bc1fd79f24c3cb051f6e8
BLAKE2b-256 31267a6c2b7a19431ddde646c8d933318c78e834c802a74caf667c6c56a14ebc

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2bac845f09c6dd401e5d6e9a8797e82c9e356d0cf7c1948ebca05ce4b6675f08
MD5 1e377a8d9b1d146c41834f45d1273be8
BLAKE2b-256 bffb9ef52aa59d0d509ca24b6b975568f71dc0e381ab3b01b719fd58c047f585

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58f61eb8f67c3e8d1406e208d9ce39f09482b79ecdd8e4e15eb6ccd0b6aa8d50
MD5 242204fcff356857aac547eac4232fc6
BLAKE2b-256 23913ebbd29cb25d905d365c8751ed585e560ee54576c7f616b3b724a9141f35

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 3d8ad559f478658b59314569ee2cf7bd249d8d831633b8f807b485eb2be5da1c
MD5 19f79a22c379ea43262e1f1892672026
BLAKE2b-256 19cd5a1ebef3766c36372b93298e1f71d8b36a57d5fe4ea036e0fbf771a2cdc0

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 85fa15d8c0a7f25a9dd135c7e24c88f621a0e51162c56d7ffedb02785b94b0b3
MD5 65eacfb51377b7e84ec042b2455cd3ba
BLAKE2b-256 fea107ba21ff4e89204250863a6fd5b6033dccb68e7158ee19bef96a25f360e3

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 574434e9e555c41de3518f7263eb0e23cee46969e49631e0ae1e45395ce84d5f
MD5 0c6c103a96df9a800c67e4ba45452fa4
BLAKE2b-256 92a15d95d8d45eecee021409a57dc3e7ab56d8ae4681a144e90bb60c0f5ad0fa

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1f0d6f84114337fe794541b15539139399e930ecc7edabcfa1d05b6b72d296fc
MD5 cdd8a0bbab053beedd013a00bfd4b406
BLAKE2b-256 6f4d65320aba445314899c88bfd21eae048bc8731718c9a063702b7b71c42e5a

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa9a6aeb808a2ee09c7b5e9cefd8eb4bd436c6fe293c7d92ce1c354289d19fb7
MD5 20a42e4ef23db1443392ffbf3ae4a01d
BLAKE2b-256 b559a117f36dd9d72871434d3dfd62de31528a9001ee2c1944bf0b70fca4cebe

See more details on using hashes here.

File details

Details for the file elaraai_east_py_datascience-1.0.65-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for elaraai_east_py_datascience-1.0.65-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9fc92393f2ef97cbc3764d929b786bea6949864e30369aa76a4d01641c0772d9
MD5 b278491bf1435aa8cb766d7dea0300b8
BLAKE2b-256 ecf5eb11bfee45a2c73715f7d622bceb2b829c26efe119aa2fbd8ff0200ebb85

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.70

16 files

1.0.69

16 files

1.0.68

16 files

1.0.67

16 files

1.0.66

16 files

This release

1.0.65 This release

16 files

1.0.64

16 files

1.0.63

16 files

1.0.62

16 files

1.0.61

16 files

1.0.60

16 files

1.0.59

16 files

1.0.58

16 files

1.0.57

16 files

1.0.56

16 files

1.0.55

16 files

1.0.54

16 files

1.0.53

16 files

1.0.52

16 files

1.0.51

16 files

1.0.50

16 files

1.0.49

16 files

1.0.48

16 files

1.0.47

16 files

1.0.46

16 files

1.0.45

16 files

1.0.44

16 files

1.0.43

16 files

1.0.42

16 files

1.0.41

16 files

1.0.40

16 files

1.0.39

16 files

1.0.38

16 files

1.0.37

16 files

1.0.36

16 files

1.0.35

16 files

1.0.34

16 files

1.0.33

16 files

1.0.32

16 files

1.0.31

16 files

1.0.30

16 files

1.0.29

16 files

1.0.28

16 files

1.0.27

16 files

1.0.26

16 files

1.0.25

16 files

1.0.24

16 files

1.0.23

16 files

1.0.22

16 files

1.0.21

16 files

1.0.20

16 files

1.0.19

16 files

1.0.18

16 files

1.0.17

16 files

1.0.16

16 files

1.0.15

16 files

1.0.14

16 files

1.0.13

16 files

1.0.12

16 files

1.0.11

16 files

1.0.10

16 files

1.0.9

16 files

1.0.8

16 files

1.0.7

16 files

1.0.6

16 files

1.0.5

16 files

1.0.4

10 files

1.0.3

10 files

1.0.2

10 files

1.0.1

10 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