save_bart: Generate Scailable BART model

Description Usage Arguments Examples

View source: R/sclbl_functions.R

Description

Takes a fitted BART model and generates a zip file from it that can then be uploaded to scailable.net

Usage

1
2
3
4
5
6
save_bart(
  bart_model,
  filename = "bart.zip",
  upload = FALSE,
  sclbl_config_file = "sclbl_config.yml"
)

Arguments

bart_model

fitted bart model

filename

name of the generated zip file (default: "bart.zip")

upload

whether to automatically upload the model to scailable.net or not (default: FALSE)

sclbl_config_file

location of config file containing the scailable API endpoint URL and scailable credentials (default: sclbl_config.yml)

Examples

1
2
3
4
5
## Not run: 
  load("bart_model.RData")
  save_bart(bart_model, "bart.zip", upload = FALSE)

## End(Not run)

scailable/sclblR documentation built on Jan. 22, 2020, 2:56 a.m.