Validate a Plugin Model Contract
validate_plugin_model.RdExecutes one fit_roi call and checks that the model returns
a valid roi_result with metrics that match
output_schema (when present).
Usage
validate_plugin_model(
model_spec,
roi_data = mock_roi_data(),
context = NULL,
check_schema = TRUE
)
# S3 method for class 'plugin_validation_result'
print(x, ...)Arguments
- model_spec
A model specification object.
- roi_data
ROI payload passed to
fit_roi. Defaults tomock_roi_data().- context
Context list passed to
fit_roi. IfNULL, a context is constructed frommodel_spec.- check_schema
Logical; if
TRUE, enforce metric name/width agreement withoutput_schema(model_spec)when schema is defined.- x
A
plugin_validation_resultobject.- ...
Unused.