Skip to contents

Serialise a model specification to JSON

Usage

sframe_model_json(model, pretty = TRUE)

Arguments

model

An sframe_model_spec() object.

pretty

Logical. Whether to pretty-print the JSON.

Value

A JSON string.

Examples

m <- sframe_model_spec("cb1", type = "cb_sem",
              constructs = list(sframe_construct("sq", items = c("sq_1", "sq_2"))))
cat(sframe_model_json(m))