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