model_projection: Calculates trained model for new Data

Description Usage Arguments Value Examples

View source: R/math_utils.R

Description

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

Usage

1
model_projection(new_X, bpwpm_params)

Arguments

new_X

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

bpwpm_params

A list of bpwpm parameters created by the function posterior_params

Value

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

Examples

1
(test_data, mean_params)

PaoloLuciano/BPWPM documentation built on May 21, 2019, 1:20 p.m.