scivision
scivision copied to clipboard
Check image input data to 'predict'
Raise a warning if the input array contains NaNs or other surprising values.
Ideally this should be done before being passed to a model (not relying on each model to implement its own checks, although there may be other model-specific things)
Checking for NaN and inf values would be a great start.