bayesvalidrox.surrogate_models.supplementaryΒΆ

Supplementary functions that are used in multiple classes

Functions

check_ranges(theta, ranges)

This function checks if theta lies in the given ranges.

corr_loocv_error(clf, psi, coeffs, y)

Calculates the corrected LOO error for regression on regressor matrix psi that generated the coefficients based on [1] and [2].

create_psi(basis_indices, univ_p_val)

This function assemble the design matrix Psi from the given basis index set INDICES and the univariate polynomial evaluations univ_p_val.

gaussian_process_emulator(X, y[, nug_term, ...])

Fits a Gaussian Process Emulator to the target given the training

hellinger_distance(p_, q_)

Hellinger distance between two continuous distributions.

logpdf(x, mean, cov)

Computes the likelihood based on a multivariate normal distribution.

subdomain(bounds, n_new_samples)

Divides a domain defined by Bounds into subdomains.