-
Notifications
You must be signed in to change notification settings - Fork 16
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 #285 from alexhernandezgarcia/scrabble-rebased
Scrabble environment
- Loading branch information
Showing
22 changed files
with
468,660 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.envs.scrabble.Scrabble | ||
|
||
id: scrabble | ||
# Buffer | ||
buffer: | ||
data_path: null | ||
train: null | ||
test: | ||
type: uniform | ||
n: 10 | ||
output_csv: scrabble_test.csv | ||
output_pkl: scrabble_test.pkl |
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,73 @@ | ||
# @package _global_ | ||
# A configuration that works well with the corners proxy. | ||
# wandb: https://wandb.ai/alexhg/cube/runs/9u2d3zzh | ||
|
||
defaults: | ||
- override /env: scrabble | ||
- override /gflownet: trajectorybalance | ||
- override /proxy: scrabble | ||
- override /logger: wandb | ||
- override /user: alex | ||
|
||
# Environment | ||
env: | ||
# Buffer | ||
buffer: | ||
data_path: null | ||
train: null | ||
test: | ||
type: random | ||
n: 1000 | ||
output_csv: scrabble_test.csv | ||
output_pkl: scrabble_test.pkl | ||
reward_func: identity | ||
|
||
# Proxy | ||
proxy: | ||
vocabulary_check: True | ||
|
||
# GFlowNet hyperparameters | ||
gflownet: | ||
random_action_prob: 0.1 | ||
optimizer: | ||
batch_size: | ||
forward: 100 | ||
lr: 0.0001 | ||
z_dim: 16 | ||
lr_z_mult: 100 | ||
n_train_steps: 10000 | ||
|
||
# Policy | ||
policy: | ||
forward: | ||
type: mlp | ||
n_hid: 512 | ||
n_layers: 5 | ||
checkpoint: forward | ||
backward: | ||
type: mlp | ||
n_hid: 512 | ||
n_layers: 5 | ||
shared_weights: False | ||
checkpoint: backward | ||
|
||
# WandB | ||
logger: | ||
do: | ||
online: true | ||
lightweight: True | ||
project_name: "scrabble" | ||
tags: | ||
- gflownet | ||
- discrete | ||
- scrabble | ||
test: | ||
period: 500 | ||
n: 1000 | ||
checkpoints: | ||
period: 500 | ||
|
||
# Hydra | ||
hydra: | ||
run: | ||
dir: ${user.logdir.root}/debug/ccube/${now:%Y-%m-%d_%H-%M-%S} |
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,73 @@ | ||
# @package _global_ | ||
# A configuration that works well with the corners proxy. | ||
# wandb: https://wandb.ai/alexhg/cube/runs/9u2d3zzh | ||
|
||
defaults: | ||
- override /env: scrabble | ||
- override /gflownet: trajectorybalance | ||
- override /proxy: scrabble | ||
- override /logger: wandb | ||
- override /user: alex | ||
|
||
# Environment | ||
env: | ||
# Buffer | ||
buffer: | ||
data_path: null | ||
train: null | ||
test: | ||
type: random | ||
n: 1000 | ||
output_csv: scrabble_test.csv | ||
output_pkl: scrabble_test.pkl | ||
reward_func: identity | ||
|
||
# Proxy | ||
proxy: | ||
vocabulary_check: True | ||
|
||
# GFlowNet hyperparameters | ||
gflownet: | ||
random_action_prob: 0.2 | ||
optimizer: | ||
batch_size: | ||
forward: 100 | ||
lr: 0.001 | ||
z_dim: 16 | ||
lr_z_mult: 100 | ||
n_train_steps: 10000 | ||
|
||
# Policy | ||
policy: | ||
forward: | ||
type: mlp | ||
n_hid: 1024 | ||
n_layers: 4 | ||
checkpoint: forward | ||
backward: | ||
type: mlp | ||
n_hid: 1024 | ||
n_layers: 3 | ||
shared_weights: False | ||
checkpoint: backward | ||
|
||
# WandB | ||
logger: | ||
do: | ||
online: true | ||
lightweight: True | ||
project_name: "scrabble" | ||
tags: | ||
- gflownet | ||
- discrete | ||
- scrabble | ||
test: | ||
period: 500 | ||
n: 1000 | ||
checkpoints: | ||
period: 500 | ||
|
||
# Hydra | ||
hydra: | ||
run: | ||
dir: ${user.logdir.root}/debug/ccube/${now:%Y-%m-%d_%H-%M-%S} |
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,3 @@ | ||
_target_: gflownet.proxy.scrabble.ScrabbleScorer | ||
|
||
vocabulary_check: 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,4 @@ | ||
logdir: | ||
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 | ||
root: /home/alex/datasets |
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.