Skip to contents

Loads the external model bundle used by predict_amd(). The large fitted random forests are deliberately not embedded in the base package. Loading verifies a caller-supplied SHA-256, validates the model and preprocessing contracts, and never downloads or refits a model. Historical v1/v2 bundles remain reproducible with their matching historical package versions.

Usage

load_amd_predictor(path, sha256)

Arguments

path

Path to an amd_predictor_bundle_v3_drop37 RDS file.

sha256

Expected 64-character SHA-256 from the matching bundle manifest. The optional package digest is required for this integrity check.

Value

An object of class "amd_predictor".