Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/pqn #122

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Stoix currently offers the following building blocks for Single-Agent RL researc
- **Munchausen DQN (M-DQN)** [Paper](https://arxiv.org/abs/2007.14430)
- **Quantile Regression DQN (QR-DQN)** - [Paper](https://arxiv.org/abs/1710.10044)
- **DQN with Regularized Q-learning (DQN-Reg)** [Paper](https://arxiv.org/abs/2101.03958)
- **Parallelised Q-network (PQN)** [Paper](https://arxiv.org/abs/2407.04811)
- **Rainbow** - [Paper](https://arxiv.org/abs/1710.02298)
- **REINFORCE With Baseline** - [Paper](https://people.cs.umass.edu/~barto/courses/cs687/williams92simple.pdf)
- **Deep Deterministic Policy Gradient (DDPG)** - [Paper](https://arxiv.org/abs/1509.02971)
Expand Down
11 changes: 11 additions & 0 deletions stoix/configs/default/anakin/default_ff_pqn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
defaults:
- logger: base_logger
- arch: anakin
- system: q_learning/ff_pqn
- network: mlp_dqn
- env: gymnax/cartpole
- _self_

hydra:
searchpath:
- file://stoix/configs
16 changes: 16 additions & 0 deletions stoix/configs/system/q_learning/ff_pqn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# --- Defaults FF-DQN ---

system_name: ff_pqn # Name of the system.

# --- RL hyperparameters ---
rollout_length: 8 # Number of environment steps per vectorised environment.
q_lr: 5e-4 # the learning rate of the Q network network optimizer
epochs: 4 # Number of ppo epochs per training data batch.
num_minibatches: 16 # Number of minibatches per ppo epoch.
gamma: 0.99 # Discounting factor.
q_lambda: 0.95 # Lambda value for Q lambda targets.
max_grad_norm: 0.5 # Maximum norm of the gradients for a weight update.
decay_learning_rates: False # Whether learning rates should be linearly decayed during training.
training_epsilon: 0.1 # epsilon for the epsilon-greedy policy during training
evaluation_epsilon: 0.00 # epsilon for the epsilon-greedy policy during evaluation
huber_loss_parameter: 0.0 # parameter for the huber loss. If 0, it uses MSE loss.
Loading
Loading