Skip to main content

Scalable Collaborative Agents for Data Science

Project description

logo

SCALD

Scalable Collaborative Agents for Data Science

Python 3.11+ License: MIT Documentation

Overview

Scald automates machine learning workflows through collaborative AI agents using the Actor-Critic pattern. The Actor agent explores data, engineers features, and trains models using six specialized MCP servers. The Critic agent evaluates solutions and provides targeted feedback for iterative refinement. This approach combines LLM-powered reasoning with gradient boosting algorithms (CatBoost, LightGBM, XGBoost) for both classification and regression tasks.

The system learns from past experiences through ChromaDB-based memory, enabling transfer learning across datasets. Each iteration produces executable code artifacts, comprehensive logs, and cost tracking for full reproducibility.

Installation

Install from PyPI:

pip install scald

Configure API credentials:

cp .env.example .env  # Add your OpenRouter API key

For development work, clone the repository and install with all dependencies:

git clone https://github.com/dmitryglhf/scald.git
cd scald
uv sync

Usage

Run AutoML from the command line:

scald --train data/train.csv --test data/test.csv --target price --task-type regression

Or use the Python API:

from scald import Scald
import polars as pl

scald = Scald(max_iterations=5)

# Option 1: Using CSV file paths
predictions = await scald.run(
    train="data/train.csv",
    test="data/test.csv",
    target="target_column",
    task_type="classification",
)

# Option 2: Using DataFrames (Polars or Pandas)
train_df = pl.read_csv("data/train.csv")
test_df = pl.read_csv("data/test.csv")

predictions = await scald.run(
    train=train_df,
    test=test_df,
    target="target_column",
    task_type="classification",
)

The Actor-Critic loop executes for the specified iterations (default: 5), producing predictions and saving all artifacts to a timestamped session directory.

Architecture

arch

The Actor agent has access to specialized MCP servers for data preview, statistical analysis, preprocessing, model training, file operations, and structured reasoning. The Critic agent reviews solutions without tool access to maintain evaluation objectivity. This separation enables independent verification while the memory system accumulates experience for improved performance on similar tasks.

Documentation

Full documentation available at dmitryglhf.github.io/scald

Serve locally:

uv sync --group docs
mkdocs serve

Development

Install development dependencies:

uv sync --group dev

Run tests and code quality checks:

just test      # Run tests
just lint      # Check code quality
just format    # Format code
just --list    # Show all commands

Requirements

Python 3.11+, uv package manager, and an API key from OpenRouter or compatible LLM provider.

Project details


Download files

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

Source Distribution

scald-0.1.2.tar.gz (560.0 kB view details)

Uploaded Source

Built Distribution

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

scald-0.1.2-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

Details for the file scald-0.1.2.tar.gz.

File metadata

  • Download URL: scald-0.1.2.tar.gz
  • Upload date:
  • Size: 560.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.3

File hashes

Hashes for scald-0.1.2.tar.gz
Algorithm Hash digest
SHA256 21fc1d343c747deb455b97fa7ba439199ccbfe1c8e37c6d99a5d87d3174cec33
MD5 c14d7828c37eac7ed360a94029e1024b
BLAKE2b-256 1c0f8e1a65c542fc7aeb95d48c1ccd19e7eb4dfa5720e97647a8a1328e90bcbc

See more details on using hashes here.

File details

Details for the file scald-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: scald-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 35.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.3

File hashes

Hashes for scald-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3dcf951bca0947034f8059b21f93dba08bab8119d278f619a3f346defc766aad
MD5 8534dc20c2ef11fc0028131afb0b1edd
BLAKE2b-256 ddbb2fd8b4899f13ec842a0516e7c39a00807efa90d26a13515669a49aabb027

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page