convertPreprocessorToJson {stochtree} | R Documentation |
Convert the persistent aspects of a covariate preprocessor to (in-memory) C++ JSON object
Description
Convert the persistent aspects of a covariate preprocessor to (in-memory) C++ JSON object
Usage
convertPreprocessorToJson(object)
Arguments
object |
List containing information on variables, including train set categories for categorical variables |
Value
wrapper around in-memory C++ JSON object
Examples
cov_mat <- matrix(1:12, ncol = 3)
preprocess_list <- preprocessTrainData(cov_mat)
preprocessor_json <- convertPreprocessorToJson(preprocess_list$metadata)
[Package stochtree version 0.1.1 Index]