View source: R/402_BTRTucker.R
BTRTucker | R Documentation |
Bayesian tensor regression with the Tucker decomposition
BTRTucker(
input,
ranks = rep(1, length(dim(input$X)) - 1),
n_iter = 100,
n_burn = 0,
CP = FALSE,
hyperparameters = NULL,
save_dir = NULL
)
input |
An object of class |
ranks |
A vector of length |
n_iter |
(a scalar) the number of posterior samples desired |
n_burn |
(a scalar) the number of posterior samples to discard as a burn-in |
CP |
Should the model be reduced to the CP decomposition? Default: FALSE |
hyperparameters |
a list with the (scalar) elements |
save_dir |
(a character) A path to a directory in which the temporary
results will be saved. Defaults to the current working directory. If
|
A list with the posterior samples
## Not run:
input <- TR_simulated_data()
results <- BTRTucker(input)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.