bayesvalidrox.surrogate_models.surrogate_models.create_psi

bayesvalidrox.surrogate_models.surrogate_models.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.

Parameters

basis_indicesarray of shape (n_terms, n_params)

Multi-indices of multivariate polynomials.

univ_p_valarray of (n_samples, n_params, n_max+1)

All univariate regressors up to n_max.

Raises

ValueError

n_terms in arguments do not match.

Returns

psiarray of shape (n_samples, n_terms)

Multivariate regressors.