Loading...
Searching...
No Matches
GpState.cpp File Reference
#include "GpState.h"
#include <bit>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <limits>
#include <map>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
#include "../../gpr/ml/GaussianProcessRegression.h"
#include "../../gpr/neb/Session.h"
#include "SeedKernel.h"

Go to the source code of this file.

Namespaces

namespace  gpr
 Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
namespace  gpr::io

Functions

void gpr::io::saveTrainedGpState (const std::string &path, const GaussianProcessRegression &gp, const Observation &observations, const AtomsConfiguration &atoms)
 Write gp-state.npz. A second save of the same state is the same bytes.
TrainedGpState gpr::io::loadTrainedGpState (const std::string &path)
TrainedGpState gpr::io::observationState (const Observation &observations)
 A state that carries observations and no pair kernel.
bool gpr::io::applyTrainedGpState (GaussianProcessRegression &gp, const TrainedGpState &state, const AtomsConfiguration &atoms, bool require_identity)
void gpr::io::refuseNonFiniteSeedRows (const Observation &observations, Eigen::Index expected_cols)
void gpr::io::noteLocalKernel (neb::ActiveLearningSession &session, const TrainedGpState &state)
int gpr::io::seedSession (neb::ActiveLearningSession &session, const TrainedGpState &state, bool require_identity, Eigen::Index expected_cols)
std::string gpr::io::resolveGpStatePath (const std::string &spec, bool restart)
std::string gpr::io::outputDirectory (const std::string &output_path)
 Directory of an output path, or . when the path has no directory.