bayesvalidrox.surrogate_models.eval_rec_rule.eval_univ_basis

bayesvalidrox.surrogate_models.eval_rec_rule.eval_univ_basis(x, max_deg, poly_types, apoly_coeffs=None)

Evaluates univariate regressors along input directions.

Parameters

xarray of shape (n_samples, n_params)

Training samples.

max_degint

Maximum polynomial degree.

poly_typeslist of strings

List of polynomial types for all parameters.

apoly_coeffsdict , optional

Polynomial coefficients computed based on moments. The default is None.

Returns

univ_valsarray of shape (n_samples, n_params, max_deg+1)

Univariate polynomials for all degrees and parameters evaluated at x.