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

View source: R/utils.R

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

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