Skip to contents

A bundle is a directory with manifest.json, feature_spec.json, blend.json and the component files (glm.json logistic regression; gbdt_xgb.json XGBoost native JSON, which needs the xgboost package). It is the same layout as the Python omop_etl.scoring.load_model_bundle, so a bundle written by either language loads in the other. ONNX and TorchScript components are Python-only; the R loader raises a clear error for them.

Usage

load_model_bundle(path, verify = TRUE)

Arguments

path

Bundle directory.

verify

If FALSE, hashes are not compared (the file-type and manifest-listing checks still apply).

Value

A model_bundle object (a list).

Details

Security: R/Python serialisations (.rds, pickle, joblib, ...) are refused. Every file the blend reads must be listed in manifest.json with a matching SHA-256, else a bundle_integrity_error is raised.