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

Bug/jon/gp update #71

Merged
merged 4 commits into from
Sep 25, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion flare/gp_from_aimd.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def pre_run(self):
train_atoms.append(atom)

self.update_gp_and_print(frame, train_atoms, train=False)
self.gp.set_L_alpha()
stevetorr marked this conversation as resolved.
Show resolved Hide resolved

# These conditions correspond to if either the GP was never trained
# or if data was added to it during the pre-run.
Expand Down Expand Up @@ -207,6 +208,8 @@ def run(self):

if self.train_count < self.max_trains:
self.train_gp()
else:
self.gp.set_L_alpha()

self.output.conclude_run()

Expand Down Expand Up @@ -234,7 +237,6 @@ def update_gp_and_print(self, frame: Structure, train_atoms: List[int],

# update gp model
self.gp.update_db(frame, frame.forces, custom_range=train_atoms)
self.gp.set_L_alpha()

if train:
self.train_gp()
Expand Down