Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns committed Jan 16, 2025
1 parent 7f13cac commit 7b720fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions examples/oom_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ def __init__(
# mock the target scaler used for reporting some human-readable metrics
self.target_scaler = SimpleNamespace(n_features_in_=1, inverse_transform=lambda i: np.array(i))

def setup(self, stage=None):
... # skip feature scaling and dataset splitting
def setup(self, stage=None): ... # skip feature scaling and dataset splitting

def _init_dataloader(self, shuffle, idxs):
return TorchDataloader(
Expand Down
4 changes: 3 additions & 1 deletion fastprop/cli/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def main():
train_subparser.add_argument("-tc", "--target-columns", nargs="+", help="column name(s) for target(s)")
train_subparser.add_argument("-sc", "--smiles-column", help="column name for SMILES")
train_subparser.add_argument("-ds", "--descriptor-set", help="descriptors to calculate (one of all, optimized, or debug)")
train_subparser.add_argument("-s", "--standardize", action="store_true", default=False, help="call rdMolStandardize.Cleanup function on molecules")
train_subparser.add_argument(
"-s", "--standardize", action="store_true", default=False, help="call rdMolStandardize.Cleanup function on molecules"
)
train_subparser.add_argument("-ec", "--enable-cache", type=bool, help="allow saving and loading of cached descriptors")
train_subparser.add_argument("-p", "--precomputed", help="precomputed descriptors from fastprop or mordred")

Expand Down
3 changes: 1 addition & 2 deletions fastprop/data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from typing import List, Literal, Optional, Tuple

import numpy as np
Expand Down Expand Up @@ -76,7 +75,7 @@ def split(
val_idxs,
) = train_test_split_molecules(smiles, test_size=val_size, **split_kwargs)
test_idxs = np.array([])

return train_idxs, val_idxs, test_idxs


Expand Down

0 comments on commit 7b720fa

Please sign in to comment.