Jun-04-2020, 03:43 AM
It depends. Some preprocessing steps may be required before passing the data to the model. In you case,
model.predict
probably expects as input a row of floating point numbers (1D array); So, you need to ensure that predict_request
(after conversion to numpy array) has float dtype (e.g. numpy.float64). Hope that helps.