Skip to contents

Writes feature_spec.json, the component files, blend.json and manifest.json (with SHA-256 hashes).

Usage

write_model_bundle(
  out_dir,
  name,
  version,
  feature_spec,
  components,
  calibration = NULL,
  risk_tiers = NULL,
  license = "UNLICENSED",
  intended_use = ""
)

Arguments

out_dir

Output directory.

name, version

Model name and version.

feature_spec

Spec list (see load_feature_spec()).

components

List of components, each list(kind =, filename =, weight =, name =) plus either content (a list written as JSON, for "logistic") or file (an existing file to copy, e.g. an XGBoost JSON).

calibration

Optional list, e.g. list(method = "platt", slope = 1, intercept = 0).

risk_tiers

Optional list of list(name =, min =).

license, intended_use

Free-text provenance.

Value

out_dir, invisibly.