Skip to main content

Meta-Optimization Using Sequential Experiences — core ICRL library

Project description

Meta-Optimization Using Sequential Experiences

Warning: MOUSE is in early development and is not yet ready for use. APIs will change without notice.

mouse-core is the core library for MOUSE, a modular PyTorch stack for in-context reinforcement learning. It provides embeddings, transformer backbones, output heads, losses, and data utilities for training and deploying agents that adapt from transition history at inference time, without weight updates.

For vector environments and rollout collection, see mouse-env.

Install

pip install mouse-core

Development:

git clone https://github.com/micahr234/mouse-core.git
cd mouse-core
source scripts/install.sh

Import as mouse (PyPI package name is mouse-core).

Quick start

from mouse import load_model
from mouse.data import DatasetStore

store = DatasetStore(max_action_dim=4, max_obs_discrete_dim=1)
store.append({
    "observation_discrete": [0],
    "action": 0,
    "reward": 0.0,
    "done": 0,
    "episode_step": 0,
})
print(store)

Offline training on synthetic data (no Hub):

source .venv/bin/activate
python examples/02_train_offline.py

Documentation

All docs are Markdown in docs/ (read on GitHub or in the repo):

Doc Description
guide.md Overview, package layout, quick start
architecture.md Embedder, backbone, heads
data.md DatasetStore, batching, Hub upload
losses.md DQN, VecDQN, SP, SV
examples.md Training loops, datasets, inference
mouse_env.md mouse-core ↔ mouse-env rollout schema

API reference: Python docstrings in src/ (e.g. load_model, DatasetStore, dqn_loss).

Repo scripts: examples/ (01_collect_dataset.py, 02_train_offline.py, 03_inference.py).

Contributing

See CONTRIBUTING.md.

License

GNU General Public License v3.0 — see LICENSE.

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

mouse_core-0.3.0.tar.gz (58.9 kB view details)

Uploaded Source

Built Distribution

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

mouse_core-0.3.0-py3-none-any.whl (71.5 kB view details)

Uploaded Python 3

File details

Details for the file mouse_core-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for mouse_core-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7347adaee435f1ab7cd9fa54cbefbe7bbd16086d8df5226cb10d28b46df2f25f
MD5 378d554085a154b3328d452aff28d9b1
BLAKE2b-256 1437bf216d44614a78ec214ee53e6aae2f0391a6fbe94b1fc0cf8b0f0a0e47d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mouse_core-0.3.0.tar.gz:

Publisher: publish.yml on micahr234/mouse-core

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

File details

Details for the file mouse_core-0.3.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mouse_core-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c34bc53ebebc12d55fbf8f58e6189102a31497716663d127dce85844894fe0a0
MD5 791bffa70b52a4b9e6a27b238ac80a01
BLAKE2b-256 d0e73d4206c76d46b15f01fc2ed2b75197105eaf2dfa4987ecfaac36f560a32e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mouse_core-0.3.0-py3-none-any.whl:

Publisher: publish.yml on micahr234/mouse-core

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