A simple DQN implementation for reinforcement learning beginners
Project description
# SimpleDQN
A simple PyTorch-based Deep Q-Network (DQN) implementation for beginners in Reinforcement Learning.
## Installation
pip install simpledqn
## Usage
from simpledqn import DQNAgent
import gymnasium as gym
env = gym.make("CartPole-v1")
agent = DQNAgent(env, episodes=100)
agent.train()
agent.plot\_rewards()
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
simpledqn-0.1.tar.gz
(2.6 kB
view details)
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 simpledqn-0.1.tar.gz.
File metadata
- Download URL: simpledqn-0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
357b8940dc23911c7615b03bdf010cc0c63ae2cc95b18c7982c2bbb7836cc4b3
|
|
| MD5 |
0183f6ef56cdbaf7db360c11fd32cb94
|
|
| BLAKE2b-256 |
728178ffc19bf45e220ee7289927e09b1d399a10fe3bb6ccdd1fc70c1c10790b
|
File details
Details for the file simpledqn-0.1-py3-none-any.whl.
File metadata
- Download URL: simpledqn-0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1808878032572a651dea0ead00116ad8473ee9323fd31bb5393436a07a284db
|
|
| MD5 |
12c7aac6883dc17c549e01cf69dd4ff0
|
|
| BLAKE2b-256 |
4ebc1f986e6bd18eedd599e6c3b883a20ebc8c777f0281c58f76101c81fbb70e
|