safepredict icon indicating copy to clipboard operation
safepredict copied to clipboard

Optionally validate new_data based on prototype of training data with hardhart infrastructure

Open alexpghayes opened this issue 5 years ago • 0 comments

Something along the lines of

validator <- vctrs_scan_data_and_get_prototype(training_data)
safe_predict(object, new_data = test_data, validator = validator)

where validator gets the stuff we need for hardhat::scream() to sanity check the input data. So the extent possible, i.e. factor repair and so, match the hardhat behaviors that Hadley suggested.

alexpghayes avatar Mar 16 '19 14:03 alexpghayes