createInits: Create a list with initial values.

Description Usage Arguments Details Value See Also Examples

Description

createInits returns a list that contains randomly generated initial values.

Usage

1
createInits(xTrain, priors = createPriors(xTrain), chains = 4)

Arguments

xTrain

An n x d matrix containing the independent variables in the training set.

priors

A list that contains the parameter values for the priors.

chains

The number of Markov chains. The default is 4.

Details

This creates a list of length chains that contains randomly generated initial values. The intention is to specify initial values for the parameters for the Markov chains. The user can change the values as they like prior to inputting the list into bcgp.

Value

A list of length chains The elements of this list will be named lists, where each of these has the name of a parameter.

See Also

bcgp

Other preprocessing functions: createPriors

Examples

1
2
3
xTrain <- matrix(runif(40), ncol= 4, nrow = 10)
createInits(xTrain)
createInits(xTrain, priors = createPriors(xTrain, noise = TRUE), chains = 2)

cbdavis33/bcgp1 documentation built on May 6, 2019, 6:57 p.m.