Skip to main content

Core library for Retro Speedlab: A high-performance RL toolkit for classic games.

Project description

datenwissenschaften: Retro Speedlab Core 🚀

License: GPL v3 Python 3.12+

datenwissenschaften is the core engine powering Retro Speedlab, a high-performance Reinforcement Learning (RL) toolkit for classic video games. Built on top of stable-baselines3 and stable-retro, it provides the underlying infrastructure for training, monitoring, and recording RL agents.

⚠️ Important Note

This package is intended as the internal library for the Retro Speedlab project. For the full experience—including automated runners, training scripts, and comprehensive documentation—please use the main repository:

👉 https://github.com/datenwissenschaften/retro-speedlab

✨ Features

  • 🎮 Command Center: A rich terminal dashboard for real-time training metrics.
  • 🏋️ Orchestrated Training: Simplified RL workflows and session management.
  • ⚡ GPU acceleration: CUDA tuning for PPO plus batched GPU inference for NEAT, with CPU fallback.
  • 📊 Smart Callbacks: Automatic checkpointing and replay recording (.bk2).
  • 🛠️ Robust Infrastructure: Streamlined environment and ROM management.

🚀 Installation

pip install datenwissenschaften

Configuration

Copy config.example.yaml to config.yaml and adjust its values. Application settings are read from YAML rather than environment variables. APIs that load configuration also accept an explicit config_path when the file is stored elsewhere. Relative paths in the file are resolved relative to the configuration file.

Set training.num_envs to auto to select parallel environment workers from CPU affinity, population size, and the systemd/cgroup memory limit. An explicit positive integer continues to override automatic selection.

Set ui.enable: true to run the local Vue training dashboard at http://127.0.0.1:18080. It charts episode fitness and step counts, shows termination outcomes, and reports environment, PPO, and NEAT configuration details. The ui mapping accepts enable, host, port, and max_episodes values. Dashboard history is restored from and atomically persisted to models/<game>/<savestate>/history.json (relative to the configured models directory). Set host: 0.0.0.0 to listen on all network interfaces; use the machine's IP address rather than 0.0.0.0 when opening the dashboard from another device.

📜 License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.


Developed with ❤️ by datenwissenschaften.

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

datenwissenschaften-1.9.1.tar.gz (102.0 kB view details)

Uploaded Source

Built Distribution

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

datenwissenschaften-1.9.1-py3-none-any.whl (121.8 kB view details)

Uploaded Python 3

File details

Details for the file datenwissenschaften-1.9.1.tar.gz.

File metadata

  • Download URL: datenwissenschaften-1.9.1.tar.gz
  • Upload date:
  • Size: 102.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1018-azure

File hashes

Hashes for datenwissenschaften-1.9.1.tar.gz
Algorithm Hash digest
SHA256 1afac1b9d88476ba249d98bb36d0f7608c852ed920efa6a458cfd156f757db2e
MD5 05fb18c3a2437b852c65661dde06f547
BLAKE2b-256 c0cf85a03daa6ac0611e63f09ceba4b0a8859769e82bab5f281ce4e860b2259f

See more details on using hashes here.

File details

Details for the file datenwissenschaften-1.9.1-py3-none-any.whl.

File metadata

  • Download URL: datenwissenschaften-1.9.1-py3-none-any.whl
  • Upload date:
  • Size: 121.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1018-azure

File hashes

Hashes for datenwissenschaften-1.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6595bf28007c284f43517c75271d29e1c0cf940864a75988fa82d2e2a5ed232
MD5 d0ff11fd9e1045a3662171f5fb2e8d06
BLAKE2b-256 38eab9d2036a50aa19a0568a05a58e016ad9e5e3d9b3a5b1fd24287550c23566

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