View source: R/serialization.R
loadForestContainerCombinedJson | R Documentation |
Combine multiple JSON model objects containing forests (with the same hierarchy / schema) into a single forest_container
loadForestContainerCombinedJson(json_object_list, json_forest_label)
json_object_list |
List of objects of class |
json_forest_label |
Label referring to a particular forest (i.e. "forest_0") in the overall json hierarchy (must exist in every json object in the list) |
ForestSamples
object
X <- matrix(runif(10*100), ncol = 10)
y <- -5 + 10*(X[,1] > 0.5) + rnorm(100)
bart_model <- bart(X, y, num_gfr=0, num_mcmc=10)
bart_json <- list(saveBARTModelToJson(bart_model))
mean_forest <- loadForestContainerCombinedJson(bart_json, "forest_0")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.