-
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 #204 from alexhernandezgarcia/cube-sep23-allornone…
…-oldtest Cube working decently fi.na.lly
- Loading branch information
Showing
22 changed files
with
3,207 additions
and
589 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,39 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.envs.cube.ContinuousCube | ||
|
||
id: ccube | ||
continuous: True | ||
func: corners | ||
# Dimensions of hypercube | ||
n_dim: 2 | ||
# Constant to restrict interval of test sets | ||
kappa: 1e-3 | ||
# Policy | ||
min_incr: 0.1 | ||
n_comp: 1 | ||
epsilon: 1e-6 | ||
beta_params_min: 0.1 | ||
beta_params_max: 100.0 | ||
fixed_distr_params: | ||
beta_weights: 1.0 | ||
beta_alpha: 10.0 | ||
beta_beta: 10.0 | ||
bernoulli_bts_prob: 0.1 | ||
bernoulli_eos_prob: 0.1 | ||
random_distr_params: | ||
beta_weights: 1.0 | ||
beta_alpha: 10.0 | ||
beta_beta: 10.0 | ||
bernoulli_bts_prob: 0.1 | ||
bernoulli_eos_prob: 0.1 | ||
# Buffer | ||
buffer: | ||
data_path: null | ||
train: null | ||
test: | ||
type: grid | ||
n: 900 | ||
output_csv: ccube_test.csv | ||
output_pkl: ccube_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
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 was deleted.
Oops, something went wrong.
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,73 @@ | ||
# @package _global_ | ||
# A configuration that works well with the corners proxy. | ||
# wandb: https://wandb.ai/alexhg/cube/runs/9u2d3zzh | ||
|
||
defaults: | ||
- override /env: ccube | ||
- override /gflownet: trajectorybalance | ||
- override /proxy: corners | ||
- override /logger: wandb | ||
- override /user: alex | ||
|
||
# Environment | ||
env: | ||
n_comp: 5 | ||
n_dim: 2 | ||
beta_params_min: 0.1 | ||
beta_params_max: 100.0 | ||
min_incr: 0.1 | ||
fixed_distr_params: | ||
beta_weights: 1.0 | ||
beta_alpha: 10.0 | ||
beta_beta: 10.0 | ||
bernoulli_eos_prob: 0.1 | ||
bernoulli_bts_prob: 0.1 | ||
random_distr_params: | ||
beta_weights: 1.0 | ||
beta_alpha: 10.0 | ||
beta_beta: 10.0 | ||
bernoulli_eos_prob: 0.1 | ||
bernoulli_bts_prob: 0.1 | ||
reward_func: identity | ||
|
||
# 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: | ||
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: | ||
lightweight: True | ||
project_name: "cube" | ||
tags: | ||
- gflownet | ||
- continuous | ||
- ccube | ||
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 uniform proxy. | ||
# wandb: https://wandb.ai/alexhg/cube/runs/1du9iyr5 | ||
|
||
defaults: | ||
- override /env: ccube | ||
- override /gflownet: trajectorybalance | ||
- override /proxy: uniform | ||
- override /logger: wandb | ||
- override /user: alex | ||
|
||
# Environment | ||
env: | ||
n_comp: 2 | ||
n_dim: 2 | ||
beta_params_min: 0.1 | ||
beta_params_max: 100.0 | ||
min_incr: 0.1 | ||
fixed_distr_params: | ||
beta_weights: 1.0 | ||
beta_alpha: 10.0 | ||
beta_beta: 10.0 | ||
bernoulli_eos_prob: 0.1 | ||
bernoulli_bts_prob: 0.1 | ||
random_distr_params: | ||
beta_weights: 1.0 | ||
beta_alpha: 10.0 | ||
beta_beta: 10.0 | ||
bernoulli_eos_prob: 0.1 | ||
bernoulli_bts_prob: 0.1 | ||
reward_func: identity | ||
|
||
# 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: | ||
forward: | ||
type: mlp | ||
n_hid: 256 | ||
n_layers: 3 | ||
checkpoint: forward | ||
backward: | ||
type: mlp | ||
n_hid: 256 | ||
n_layers: 3 | ||
shared_weights: False | ||
checkpoint: backward | ||
|
||
# WandB | ||
logger: | ||
lightweight: True | ||
project_name: "cube" | ||
tags: | ||
- gflownet | ||
- continuous | ||
- ccube | ||
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
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.