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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7347adaee435f1ab7cd9fa54cbefbe7bbd16086d8df5226cb10d28b46df2f25f
|
|
| MD5 |
378d554085a154b3328d452aff28d9b1
|
|
| BLAKE2b-256 |
1437bf216d44614a78ec214ee53e6aae2f0391a6fbe94b1fc0cf8b0f0a0e47d7
|
Provenance
The following attestation bundles were made for mouse_core-0.3.0.tar.gz:
Publisher:
publish.yml on micahr234/mouse-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mouse_core-0.3.0.tar.gz -
Subject digest:
7347adaee435f1ab7cd9fa54cbefbe7bbd16086d8df5226cb10d28b46df2f25f - Sigstore transparency entry: 1612154105
- Sigstore integration time:
-
Permalink:
micahr234/mouse-core@111d45ec82000a3a0797b9bc9aaaed3de80d8265 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/micahr234
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@111d45ec82000a3a0797b9bc9aaaed3de80d8265 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c34bc53ebebc12d55fbf8f58e6189102a31497716663d127dce85844894fe0a0
|
|
| MD5 |
791bffa70b52a4b9e6a27b238ac80a01
|
|
| BLAKE2b-256 |
d0e73d4206c76d46b15f01fc2ed2b75197105eaf2dfa4987ecfaac36f560a32e
|
Provenance
The following attestation bundles were made for mouse_core-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on micahr234/mouse-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mouse_core-0.3.0-py3-none-any.whl -
Subject digest:
c34bc53ebebc12d55fbf8f58e6189102a31497716663d127dce85844894fe0a0 - Sigstore transparency entry: 1612154192
- Sigstore integration time:
-
Permalink:
micahr234/mouse-core@111d45ec82000a3a0797b9bc9aaaed3de80d8265 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/micahr234
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@111d45ec82000a3a0797b9bc9aaaed3de80d8265 -
Trigger Event:
workflow_dispatch
-
Statement type: