-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from alexhernandezgarcia/new_fl_loss
Forward-looking (FL) and Detailed Balance (DB) losses
- Loading branch information
Showing
19 changed files
with
704 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# @package _global_ | ||
|
||
defaults: | ||
- override /env: tetris | ||
- override /gflownet: trajectorybalance | ||
- override /policy: mlp | ||
- override /proxy: tetris | ||
- override /logger: wandb | ||
|
||
env: | ||
reward_func: boltzmann | ||
reward_beta: 10.0 | ||
width: 4 | ||
height: 4 | ||
pieces: ["I", "O", "J", "L", "T"] | ||
rotations: [0, 90, 180, 270] | ||
buffer: | ||
# replay_capacity: 0 | ||
test: | ||
type: random | ||
output_csv: simple_tetris_val.csv | ||
output_pkl: simple_tetris_val.pkl | ||
n: 100 | ||
|
||
gflownet: | ||
random_action_prob: 0.3 | ||
optimizer: | ||
n_train_steps: 10000 | ||
lr_z_mult: 100 | ||
lr: 0.0001 | ||
|
||
policy: | ||
forward: | ||
type: mlp | ||
n_hid: 128 | ||
n_layers: 5 | ||
|
||
backward: | ||
shared_weights: True | ||
checkpoint: null | ||
reload_ckpt: False | ||
|
||
device: cpu | ||
logger: | ||
do: | ||
online: True | ||
project_name: simple_tetris |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
defaults: | ||
- gflownet | ||
- state_flow: mlp | ||
|
||
optimizer: | ||
loss: detailedbalance | ||
lr: 0.0001 | ||
lr_decay_period: 1000000 | ||
lr_decay_gamma: 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
defaults: | ||
- gflownet | ||
- state_flow: mlp | ||
|
||
optimizer: | ||
loss: forwardlooking | ||
lr: 0.0001 | ||
lr_decay_period: 1000000 | ||
lr_decay_gamma: 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
_target_: gflownet.policy.state_flow.StateFlow | ||
|
||
config: | ||
type: mlp | ||
n_hid: 128 | ||
n_layers: 2 | ||
checkpoint: null | ||
reload_ckpt: False | ||
shared_weights: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defaults: | ||
- mlp | ||
|
||
backward: | ||
shared_weights: True | ||
checkpoint: null | ||
reload_ckpt: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defaults: | ||
- mlp | ||
|
||
backward: | ||
shared_weights: True | ||
checkpoint: null | ||
reload_ckpt: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
logdir: | ||
root: /network/scratch/h/hernanga/logs/gflownet | ||
root: /home/alex/logs/gflownet | ||
data: | ||
root: /home/mila/h/hernanga/gflownet/data | ||
alanine_dipeptide: /home/mila/h/hernanga/gflownet/data/alanine_dipeptide_conformers_1.npy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.