createPreprocessorFromJsonString {stochtree} | R Documentation |
Reload a covariate preprocessor object from a JSON string containing a serialized preprocessor
Description
Reload a covariate preprocessor object from a JSON string containing a serialized preprocessor
Usage
createPreprocessorFromJsonString(json_string)
Arguments
json_string |
in-memory JSON string containing covariate preprocessor metadata |
Value
Preprocessor object that can be used with the preprocessPredictionData
function
Examples
cov_mat <- matrix(1:12, ncol = 3)
preprocess_list <- preprocessTrainData(cov_mat)
preprocessor_json_string <- savePreprocessorToJsonString(preprocess_list$metadata)
preprocessor_roundtrip <- createPreprocessorFromJsonString(preprocessor_json_string)
[Package stochtree version 0.1.1 Index]