model-based-rl

Study model-based RL methods with world models and planning.

1|Updated Oct 29, 2025
One-click install
npx skills add https://github.com/tachyon-beep/hamlet --skill model-based-rl
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: model-based-rl
Source: https://github.com/tachyon-beep/hamlet/tree/main/.claude/skills/yzmir-deep-rl/skills/model-based-rl
Command: npx skills add https://github.com/tachyon-beep/hamlet --skill model-based-rl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to model-based reinforcement learning, bridging world-model learning, planning, and policy optimization to improve sample efficiency and generalization in RL agents.

Core Features & Use Cases

  • World models and dynamics learning (Deterministic and stochastic)
  • Planning with learned models (MPC, shooting, CEM)
  • Algorithms in focus: Dyna-Q, MBPO, and Dreamer
  • Practical guidance on uncertainty, ensembles, and sim-to-real transfer
  • Ready-to-adapt templates for research and education use

Quick Start

Use MBPO with a toy environment to bootstrap policy learning and compare imagined vs real data.

Frequently Asked Questions about model-based-rl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use world models for planning in model-based reinforcement learning?▼

World models for planning in model-based reinforcement learning involve learning a dynamics model from real environment interactions, then simulating short rollouts (k in 5-10) to bootstrap value functions and optimize policies. This skill provides MBPO and Dreamer templates for this workflow.

What is the difference between Dyna-Q, MBPO, and Dreamer algorithms?▼

The difference is that Dyna-Q integrates model-free learning with simulated planning, MBPO uses an ensemble of dynamics models for short-horizon rollouts with uncertainty checks, and Dreamer uses a learned world model for latent imagination-based policy optimization.

How to implement MBPO constraints with ensemble uncertainty checks?▼

Implementing MBPO constraints with ensemble uncertainty checks requires training an ensemble of dynamics models, enforcing short rollouts (k in 5-10 steps), and using ensemble disagreement to measure uncertainty for bootstrapping the value function during policy optimization.

Can I use model-based RL for sim-to-real transfer across common benchmarks?▼

Yes, model-based RL can be used for sim-to-real transfer across common benchmarks by training world models in simulation and adapting policies to real environments. This skill offers templates and pseudocode to guide sim-to-real transfer experimentation.

Why do model-based RL methods use short rollouts with k in 5 to 10 steps?▼

Model-based RL methods use short rollouts with k in 5 to 10 steps to prevent compounding model errors from degrading the learned value function. MBPO-style constraints limit imagination horizons to keep bootstrapped estimates reliable and stable.

Does MPC planning work with stochastic world models in model-based RL?▼

MPC planning works with stochastic world models in model-based RL by using sampling-based optimizers like CEM (Cross-Entropy Method) to handle uncertainty. This skill covers planning with both deterministic and stochastic dynamics models.