savePreprocessorToJsonString: Convert the persistent aspects of a covariate preprocessor to...

View source: R/utils.R

savePreprocessorToJsonStringR 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)

stochtree documentation built on April 4, 2025, 2:11 a.m.