AgileRL Offline RL And Bandit Data
Use this sub-skill for AgileRL offline reinforcement learning, replay/data conversion, CQL, ILQL, train_offline, contextual bandits, NeuralUCB, NeuralTS, and BanditEnv workflows.
Read First
references/workflows.md for offline RL and contextual bandit recipes.
references/data-formats.md for transition, HDF5/Minari, and tabular bandit schemas.
references/api-reference.md for replay/bandit/offline APIs.
references/troubleshooting.md for shape, schema, and network/download failures.
scripts/inspect_bandit_setup.py --help for a no-download synthetic bandit probe.
Boundaries
- Use
../training-workflows/SKILL.md for online Gymnasium PPO/DQN/DDPG/TD3 workflows.
- Use
../hpo-and-mutation/SKILL.md for tournament/mutation configuration.
- Use
../llm-fine-tuning/SKILL.md for language/LLM datasets and RL post-training environments.
- This sub-skill owns static transition datasets, replay filling, Minari/HDF5 handling, and one-step contextual bandit datasets.
Offline RL Flow
- Load or validate a dataset with observations, actions, rewards, next observations, and done/terminal flags.
- Create an environment only for spaces/evaluation, not online data collection.
- Create a
CQN/ILQL-style population with create_population(...).
- Fill
ReplayBuffer with Transition(...).to_tensordict() entries.
- Configure HPO and call
train_offline(...) or a custom offline loop.
Contextual Bandit Flow
- Prepare tabular or array features and targets.
- Create
BanditEnv(features, targets).
- Use
NeuralUCB or NeuralTS with a discrete action space.
- Use replay memory and
train_bandits(...) or a custom one-step loop.
Safe Validation
python scripts/inspect_bandit_setup.py --rows 8 --features 4 --arms 3
The helper creates synthetic in-memory data. It does not download UCI datasets or run training.
1---2name: offline-bandits-data3description: "Use AgileRL offline RL datasets, replay/data conversion, CQL/ILQL,4 contextual bandits, NeuralUCB/NeuralTS, and BanditEnv workflows."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/offline-bandits-data8 disco-role: operating9license: Apache 2.010---1112# AgileRL Offline RL And Bandit Data1314Use this sub-skill for AgileRL offline reinforcement learning, replay/data conversion, `CQL`, `ILQL`, `train_offline`, contextual bandits, `NeuralUCB`, `NeuralTS`, and `BanditEnv` workflows.1516## Read First1718- `references/workflows.md` for offline RL and contextual bandit recipes.19- `references/data-formats.md` for transition, HDF5/Minari, and tabular bandit schemas.20- `references/api-reference.md` for replay/bandit/offline APIs.21- `references/troubleshooting.md` for shape, schema, and network/download failures.22- `scripts/inspect_bandit_setup.py --help` for a no-download synthetic bandit probe.2324## Boundaries2526- Use `../training-workflows/SKILL.md` for online Gymnasium PPO/DQN/DDPG/TD3 workflows.27- Use `../hpo-and-mutation/SKILL.md` for tournament/mutation configuration.28- Use `../llm-fine-tuning/SKILL.md` for language/LLM datasets and RL post-training environments.29- This sub-skill owns static transition datasets, replay filling, Minari/HDF5 handling, and one-step contextual bandit datasets.3031## Offline RL Flow32331. Load or validate a dataset with observations, actions, rewards, next observations, and done/terminal flags.342. Create an environment only for spaces/evaluation, not online data collection.353. Create a `CQN`/`ILQL`-style population with `create_population(...)`.364. Fill `ReplayBuffer` with `Transition(...).to_tensordict()` entries.375. Configure HPO and call `train_offline(...)` or a custom offline loop.3839## Contextual Bandit Flow40411. Prepare tabular or array features and targets.422. Create `BanditEnv(features, targets)`.433. Use `NeuralUCB` or `NeuralTS` with a discrete action space.444. Use replay memory and `train_bandits(...)` or a custom one-step loop.4546## Safe Validation4748```bash49python scripts/inspect_bandit_setup.py --rows 8 --features 4 --arms 350```5152The helper creates synthetic in-memory data. It does not download UCI datasets or run training.