Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing with extranious data splits #121

Open
bnebgen-LANL opened this issue Nov 4, 2024 · 0 comments
Open

testing with extranious data splits #121

bnebgen-LANL opened this issue Nov 4, 2024 · 0 comments

Comments

@bnebgen-LANL
Copy link
Collaborator

When training completes, testing will occur over all data splits. This will include data from splits like 'failed_std_fac_forces'. Error handling needs to be added when testing such splits at the end of training so that failing to evaluate on those splits does not cause a full crash. Edits should be made around hippynn/experiment/routines.py line 362

Traceback (most recent call last):
File "/usr/projects/ml4chem/envs/p311a-venado-alf/lib/python3.10/site-packages/hippynn/tools.py", line 53, in log_terminal
yield file
File "/users/bnebgen/energeticMaterials/retrain-DFT-01/HIPNN-HC-hypSearch-0.py", line 233, in
setup_and_train(
File "/usr/projects/ml4chem/envs/p311a-venado-alf/lib/python3.10/site-packages/hippynn/experiment/routines.py", line 138, in setup_and_train
return train_model(
File "/usr/projects/ml4chem/envs/p311a-venado-alf/lib/python3.10/site-packages/hippynn/experiment/routines.py", line 322, in train_model
test_model(
File "/usr/projects/ml4chem/envs/p311a-venado-alf/lib/python3.10/site-packages/hippynn/experiment/routines.py", line 362, in test_model
evaluation_data = collections.OrderedDict(
File "/usr/projects/ml4chem/envs/p311a-venado-alf/lib/python3.10/site-packages/hippynn/experiment/routines.py", line 364, in
(key, database.make_generator(key, "eval", batch_size))
File "/usr/projects/ml4chem/envs/p311a-venado-alf/lib/python3.10/site-packages/hippynn/databases/database.py", line 446, in make_generator
data = [self.splits[split_name][k] for k in self.var_list]
File "/usr/projects/ml4chem/envs/p311a-venado-alf/lib/python3.10/site-packages/hippynn/databases/database.py", line 446, in
data = [self.splits[split_name][k] for k in self.var_list]
KeyError: 'energyperatom'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant