You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using jsonData, why does the predict signature still require features_names as an argument in the Predict function?
"""
Return a prediction.
Parameters
----------
X : array-like
feature_names : array of feature names (optional)
"""
print("Predict called - will run identity function")
return X```
. Also the response of the Predict function when using jsonData has meta:{} in it. When jsonData is suppose to be generic json why is predict function returning meta?
```curl -g http://localhost:5000/predict --data-urlencode 'json={"jsonData": {"ndarray": [[4.098, 2.128, 9.715, 2.977]]}}'
{"jsonData":{"my_predictions":[[3.9589564268624405e-18,4.098772877346702e-09,0.9999999959012271]]},"meta":{}}```
The text was updated successfully, but these errors were encountered:
Meta data is for the whole request and is understood by the engine component that manages the requests. So makes sense to keep it as a core Seldon feature for meta irrespective of data payload.
I agree feature names could be made a keyword argument which defaults to None.
* remove versions dropdown and align top bar with V1 docs
* Use consistent capitalisation of v2 in SCv2 name
* Update author to be company not individual
* Remove extraneous config
* Set nav title explicitly
* Set base URL for docs as per SCv1
* Update title header on landing page
Co-authored-by: Alex Rakowski <20504869+agrski@users.noreply.github.com>
When using jsonData, why does the predict signature still require features_names as an argument in the Predict function?
The text was updated successfully, but these errors were encountered: