model_eta: Calculates trained model for new Data

Description Usage Arguments Value Examples

Description

Given a set of parameters inherited by the bpwpm_gibbs training procedure, we calculate the value of the eta function for new data. This function is both used on the predict and plot_3D functions.

Usage

1
model_eta(new_X, bpwpm_params)

Arguments

new_X

A new set of data for which to calculate the f(x) eta function

bpwpm_params

A list of bpwpm parameters created by the function posterior_params

Value

A vector of the eta vector for a given set of points

Examples

1
(test_data, mean_params)

PaoloLuciano/bpwpm2 documentation built on June 6, 2019, 5:47 p.m.