Restart or warm-start a search¶
A finished gprn or gprd run writes gp-state.npz beside its output.
The file holds the training observations and the fitted hyperparameters.
A later search that names that file starts from those rows. The rows are
prior data: they are not counted as oracle calls.
Load a saved GP¶
Pass the file with --gp-init:
gprn --help
gprd takes the same flag:
gprd --help
A TOML run file uses the same path under [run] as gp_init.
Restart from the previous directory¶
--restart reads gp-state.npz from a directory, or the gp-state.npz
next to a previous output file:
gprn --help
--gp-init and --restart together must name the same file.
The log lines Seeded, Seed file, Seed sha256 and Prior observations
record the seed. seed-provenance.txt next to the new gp-state.npz
records the same hash. Oracle calls does not include the prior rows.
Python¶
gp_neb, run_ocineb, gp_minimize, search_local, search_periodic
and run_dimer take gp= and init_data=. gp= is a
GaussianProcess or a path. init_data= is an Observation or a path.
GaussianProcess.save(path) writes the same gp-state.npz. A path loads
that file’s observations and its fitted kernel. A fitted
GaussianProcess contributes its rows and its hyperparameters. Anything
else passed as gp= is an error.
The seed’s coordinate width has to be the width of the search. A mismatch
is an error, and so is a non-finite row: the message names how many rows
were kept and how many were dropped. gprd uses that same check. An empty
observation table round-trips beside a fitted kernel.
search_local and search_periodic report those rows as
prior_observations. They are not part of oracle_calls. A local band
(GP_LOCAL) installs the seed rows and, when the file has a positive
signal variance and length scales, that signal variance and the geometric
mean of the length scales. The kernel is not replaced by a spacing estimate
unless the search was asked to refit.
run_dimer and gprd keep an imported kernel through the next refit. A
later observation does not reseed the signal variance back to 1. A minimizer
with at least three seed rows treats that table as the design it already
has, so the first new observation does not restart hyperparameter seeding.
gprn’s outer loop does the same for a kernel the seed installed.
A dimer seed written by gprd has one column per moving coordinate, so a
frozen atom does not have to be a suffix of the system. A table that
already holds every atom is sliced down to the moving coordinates.