Skip to content

Commit

Permalink
further formatting with isort
Browse files Browse the repository at this point in the history
  • Loading branch information
engmubarak48 committed Jun 21, 2024
1 parent d50aeea commit 1508e4b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion gflownet/policy/mlp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from torch import nn
from omegaconf import OmegaConf
from torch import nn

from gflownet.policy.base import Policy


Expand Down
1 change: 1 addition & 0 deletions scripts/crystal/eval_crystalgflownet.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
sys.path.append(str(Path(__file__).resolve().parent.parent))

from crystalrandom import generate_random_crystals

from gflownet.gflownet import GFlowNetAgent
from gflownet.utils.common import load_gflow_net_from_run_path
from gflownet.utils.policy import parse_policy_config
Expand Down
2 changes: 1 addition & 1 deletion scripts/crystal/eval_gflownet.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from argparse import ArgumentParser
from pathlib import Path

import pandas as pd
import numpy as np
import pandas as pd
import torch
from tqdm import tqdm

Expand Down
4 changes: 2 additions & 2 deletions scripts/crystal/sample_uniform_with_rewards.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

import hydra
import pandas as pd
from crystalrandom import generate_random_crystals_uniform

from gflownet.utils.common import chdir_random_subdir
from gflownet.utils.policy import parse_policy_config

from crystalrandom import generate_random_crystals_uniform


@hydra.main(config_path="../../config", config_name="main", version_base="1.1")
def main(config):
Expand Down

0 comments on commit 1508e4b

Please sign in to comment.