L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

reinforcement-learning

reinforcement-learning

Operate ML-From-Scratch DeepQNetwork CartPole workflows, model builders, replay memory, epsilon decay, and Gym compatibility.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: reinforcement-learning description: "Operate ML-From-Scratch DeepQNetwork CartPole workflows, model builders, replay memory, epsilon decay, and Gym compatibility." disable-model-invocation: true metadata: disco-role: operating license: MIT

reinforcement-learning

Use this sub-skill when the task is specifically about ML-From-Scratch's DeepQNetwork workflow: CartPole setup, Gym compatibility, model-builder callbacks, replay memory, epsilon-greedy behavior, train, or play/render behavior.

Route first

Operating scope

Supported package surface:

  • DeepQNetwork(env_name='CartPole-v1', epsilon=1, gamma=0.9, decay_rate=0.005, min_epsilon=0.1)
  • dqn.set_model(model_builder) where the callback accepts n_inputs and n_outputs
  • dqn.train(n_epochs=500, batch_size=32) for educational training loops
  • dqn.play(n_epochs) only when rendering/display support is intentionally available

Do not present this repository as a full RL framework. It is an educational DQN implementation with a small replay buffer, no target network, no vectorized environments, and version-sensitive Gym assumptions.

Default stance

Start with a one-epoch, no-render smoke before longer training. Prefer gym==0.25.x with NumPy <2 for compatibility. If the user is on newer Gym APIs, normalize reset to an observation and step to (obs, reward, done, info) before calling DeepQNetwork.train.

Skills enregistrées