-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'conformer_ai4mat23' of github.com:alexhernandezgarcia/g…
…flownet into rdkit_cluster_baseline
- Loading branch information
Showing
85 changed files
with
97,273 additions
and
689 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 |
---|---|---|
|
@@ -11,4 +11,6 @@ sh/ | |
.vscode/ | ||
external/ | ||
!requirements.txt | ||
!docs/requirements-docs.txt | ||
.DS_Store | ||
docs/_build/ |
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,22 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# We recommend specifying your dependencies to enable reproducible builds: | ||
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: docs/requirements-docs.txt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.envs.crystals.lattice_parameters.LatticeParameters | ||
|
||
id: lattice_parameters | ||
|
||
lattice_system: triclinic | ||
min_length: 1.0 | ||
max_length: 350.0 | ||
min_angle: 50.0 | ||
max_angle: 150.0 | ||
grid_size: 10 | ||
max_increment: 1 | ||
|
||
# Buffer | ||
buffer: | ||
data_path: null | ||
train: | ||
type: random | ||
n: 2000 | ||
output_csv: lattice_parameters_train.csv | ||
output_pkl: lattice_parameters_train.pkl | ||
test: | ||
type: random | ||
n: 2000 | ||
output_csv: lattice_parameters_test.csv | ||
output_pkl: lattice_parameters_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 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
File renamed without changes.
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} |
Oops, something went wrong.