Skip to main content

The xRtm Framework (Generative Forecasting).

Project description

XRTM v0.9.0 — AI for Event Forecasting

PyPI License

XRTM runs event-forecasting workflows from the command line. It uses a deterministic baseline by default (no API keys needed) and supports any OpenAI-compatible endpoint for real LLM forecasts.

Install

pip install xrtm

Python >=3.11,<3.14.

Quick Start

# Deterministic baseline (no API key)
xrtm start

# With a real LLM via any OpenAI-compatible endpoint
xrtm start --provider openai --model deepseek-v4-pro --base-url https://api.deepseek.com

# Inspect results
xrtm runs show --latest

Commands

Command What it does
xrtm start Run forecasts (deterministic or real LLM)
xrtm demo Quick 2-question deterministic demo
xrtm doctor Check Python, packages, imports
xrtm runs show --latest Inspect the most recent run

Providers

Provider API key needed
deterministic (default) None
openai / openai-compatible OPENAI_API_KEY

Set OPENAI_API_KEY, OPENAI_BASE_URL, and OPENAI_MODEL in your environment or .env file.

Run Artifacts

Each run produces 11 artifacts in runs/<run-id>/: run.json, eval.json, train.json, forecasts.jsonl, report.html, blueprint.json, provider.json, questions.jsonl, events.jsonl, graph_trace.jsonl, run_summary.json

XRTM Ecosystem

Package Role
xrtm-data Schemas & question sources (real-binary corpus, Polymarket, Metaculus)
xrtm-eval Scoring (Brier, ECE, LogScore)
xrtm-forecast Runtime engine (agents, providers, topologies)
xrtm-train Backtesting & optimization
xrtm Product CLI (this package)

License

Apache 2.0

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

xrtm-0.9.0.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

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

xrtm-0.9.0-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file xrtm-0.9.0.tar.gz.

File metadata

  • Download URL: xrtm-0.9.0.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xrtm-0.9.0.tar.gz
Algorithm Hash digest
SHA256 d4b3cc6c10ace0a26f744507e6d7632e048877b1e9aed002262ec562dba82a2d
MD5 3dd5c34f7552b70db784f511162f8f54
BLAKE2b-256 1c588d093c9545ebfe4a1fcc69df8b12cedcd961d312f58fdf12d4f750e998f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrtm-0.9.0.tar.gz:

Publisher: publish.yml on xrtm-org/xrtm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xrtm-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: xrtm-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xrtm-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6066a7c18908aef33f638ff677485a767fc69a95723ef8431c46814f8d71819f
MD5 71105b70f492304fb56e5ed4485f6983
BLAKE2b-256 2c0e9a040e823963c55063715e0f9baf3af6484bfacd89154a5cdbb43a0d9421

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrtm-0.9.0-py3-none-any.whl:

Publisher: publish.yml on xrtm-org/xrtm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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