-
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.
- Loading branch information
Showing
53 changed files
with
2,332 additions
and
655 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 |
---|---|---|
@@ -1,29 +1,17 @@ | ||
_target_: gflownet.envs.base.GFlowNetEnv | ||
|
||
# Reward function: power or boltzmann | ||
# boltzmann: exp(-1.0 * reward_beta * proxy) | ||
# power: (-1.0 * proxy / reward_norm) ** self.reward_beta | ||
# identity: proxy | ||
reward_func: identity | ||
# Minimum reward | ||
reward_min: 1e-8 | ||
# Beta parameter of the reward function | ||
reward_beta: 1.0 | ||
# Reward normalization for "power" reward function | ||
reward_norm: 1.0 | ||
# If > 0, reward_norm = reward_norm_std_mult * std(energies) | ||
reward_norm_std_mult: 0.0 | ||
proxy_state_format: oracle | ||
env_id: "env" | ||
# Policy distribution parameters | ||
fixed_distr_params: null | ||
random_distr_params: null | ||
# Check if action valid with mask before step | ||
skip_mask_check: False | ||
# Whether the environment has conditioning variables | ||
conditional: False | ||
# Whether the environment is continuous | ||
continuous: False | ||
# Buffer | ||
# Buffer: no train and test buffers by default | ||
buffer: | ||
replay_capacity: 0 | ||
train: | ||
path: null | ||
test: | ||
path: null | ||
train: null | ||
test: null |
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 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 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 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 |
---|---|---|
|
@@ -12,7 +12,6 @@ env: | |
n_dim: 2 | ||
n_angles: 20 | ||
length_traj: 20 | ||
reward_func: identity | ||
|
||
# Proxy | ||
proxy: | ||
|
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,7 +11,6 @@ defaults: | |
env: | ||
n_dim: 2 | ||
length_traj: 5 | ||
reward_func: identity | ||
|
||
# Proxy | ||
proxy: | ||
|
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,7 +11,6 @@ defaults: | |
env: | ||
n_dim: 2 | ||
length_traj: 20 | ||
reward_func: identity | ||
|
||
# Proxy | ||
proxy: | ||
|
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 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 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,24 @@ | ||
_target_: gflownet.proxy.base.Proxy | ||
|
||
# Reward function: string identifier of the proxy-to-reward function: | ||
# - identity (default) | ||
# - absolute | ||
# - power | ||
# - exponential | ||
# - shift | ||
# - product | ||
# Alternatively, it can be a callable of the function itself. | ||
reward_function: identity | ||
# A callable of the proxy-to-logreward function. | ||
# None by default, which takes the log of the proxy-to-reward function | ||
logreward_function: null | ||
# Arguments of the proxy-to-reward function (beta): | ||
# - power: R(x) = x ** beta | ||
# - exponential: R(x) = exp(x * beta) | ||
# - shift: R(x) = x + beta | ||
# - product: R(x) = x * beta | ||
reward_function_kwargs: {} | ||
# Minimum reward. Used to clip the rewards. | ||
reward_min: 0.0 | ||
# Flag to control whether rewards are clipped | ||
do_clip_rewards: 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,8 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.proxy.corners.Corners | ||
|
||
mu: 0.75 | ||
sigma: 0.05 | ||
higher_is_better: 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,3 +1,6 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.proxy.crystals.dave.DAVE | ||
|
||
release: 0.3.4 | ||
|
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,3 +1,6 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.proxy.crystals.lattice_parameters.LatticeParameters | ||
|
||
min_value: -100 |
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,3 +1,6 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.proxy.crystals.spacegroup.SpaceGroup | ||
|
||
normalize: True |
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,3 +1,6 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.proxy.aptamers.Aptamers | ||
|
||
oracle_id: length | ||
|
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,4 +1,7 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.proxy.molecule.RFMoleculeEnergy | ||
|
||
path_to_model: './data/random_forest_reward_100.pkl' | ||
url_to_model: 'https://drive.google.com/uc?id=1OpQNC8WWIsMh8K4olfSaQRFlj3emYThF' | ||
url_to_model: 'https://drive.google.com/uc?id=1OpQNC8WWIsMh8K4olfSaQRFlj3emYThF' |
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,3 +1,6 @@ | ||
defaults: | ||
- base | ||
|
||
_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,3 +1,6 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.proxy.tetris.Tetris | ||
|
||
normalize: True | ||
|
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,3 +1,6 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.proxy.torus.Torus | ||
|
||
normalize: True | ||
|
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,3 +1,6 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.proxy.tree.TreeProxy | ||
|
||
use_prior: 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 +1,4 @@ | ||
defaults: | ||
- base | ||
|
||
_target_: gflownet.proxy.uniform.Uniform |
Oops, something went wrong.