Skip to content
Back to skills

Reinforcement Learning

ASecurity

"Operate ML-From-Scratch DeepQNetwork CartPole workflows, model

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
educationapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill reinforcement-learning --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reinforcement Learning?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reinforcement Learning
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-reinforcement-learning/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-reinforcement-learning)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

- For the DQN lifecycle, use [`references/workflows.md`](references/workflows.md).
- For Gym/NumPy compatibility, reset/step API drift, render/display failures, and state/action shape errors, use [`references/troubleshooting.md`](references/troubleshooting.md).
- For a bounded non-rendering smoke check, run [`scripts/run_dqn_smoke.py`](scripts/run_dqn_smoke.py).
- For layer, optimizer, loss, and `NeuralNetwork` internals, route to [`../deep-learning/SKILL.md`](../deep-learning/SKILL.md).
- For package-wide install/dependency context, see [`../../references/package-overview.md`](../../references/package-overview.md) and [`../../references/troubleshooting.md`](../../references/troubleshooting.md).

## 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`.

Files in this skill

  • SKILL.md2.1 KB
  • references/troubleshooting.md4.4 KB
  • references/workflows.md4.6 KB
  • scripts/run_dqn_smoke.py7.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.