add helper functions for data handling to new file, helpers.py
some small refactoring of testing the API (eg, parameterizing values, removing duplicated tests in vetiver/tests/test_predict.py and vetiver/tests/test_sklearn.py)
updates error messages to be more descriptive of location and feature causing error
previous error message:
422 Unprocessable Entity
TypeError: Predict expects DataFrame, Series, or dict.
new error message:
1 validation error for Request: body -> 0 -> disp: value is not a valid float (type=type_error.float)
where 0 is the index of the error and disp is the feature with the error
Related Issues
closes #152
closes #85
closes #147
Notes
This PR must be merged before #143 since spacy's input data of one column of strings cannot be handled in the same way as tabular data, and the output might be multiple columns. This PR gives the flexibility of input/output handling to each modeling framework's handler.
Added in this PR
vetiver_post
vetiver/tests/test_predict.py
andvetiver/tests/test_sklearn.py
)previous error message:
new error message:
where 0 is the index of the error and
disp
is the feature with the errorRelated Issues
Notes
This PR must be merged before #143 since spacy's input data of one column of strings cannot be handled in the same way as tabular data, and the output might be multiple columns. This PR gives the flexibility of input/output handling to each modeling framework's handler.