I'm loading an ML trained model from a file.
I noticed that when calling predict() with an input sample of the wrong size, the function does not (necessarily) fail! Apparently there is no internal checking that the input is of the right size that matches the one expected by the loaded model!
I want to verify that when I'm calling predict(), my input sample is of the correct size.
How can I do that?
I cannot seem to find such a method to provide this info.