Skip to content

Commit

Permalink
Fix bugg
Browse files Browse the repository at this point in the history
  • Loading branch information
frostedoyster committed Sep 25, 2024
1 parent d62fbc2 commit 478eb8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/metatrain/utils/additive/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ def train_model(
raise ValueError(
"Provided `datasets` contains unknown "
f"atomic types {additional_types}. "
f"Known types from initilaization are {self.atomic_types}."
f"Known types from initialization are {self.atomic_types}."
)

missing_types = sorted(set(self.atomic_types) - set(get_atomic_types(datasets)))
if missing_types:
warnings.warn(
f"Provided `datasets` do not contain atomic types {missing_types}. "
f"Known types from initilaization are {self.atomic_types}.",
f"Known types from initialization are {self.atomic_types}.",
stacklevel=2,
)

Expand Down
6 changes: 2 additions & 4 deletions tests/resources/options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ seed: 42

architecture:
name: experimental.soap_bpnn
model:
zbl: true
training:
batch_size: 2
num_epochs: 1

training_set:
systems:
read_from: ethanol_reduced_100.xyz
read_from: qm9_reduced_100.xyz
length_unit: angstrom
targets:
energy:
key: energy
key: U0
unit: eV

test_set: 0.5
Expand Down

0 comments on commit 478eb8f

Please sign in to comment.