Predicting

To receive a prediction from a model, call a /predict endpoint with features like the example below.

Python Client
Python
Javascript
Java
Go
Ruby
C#
from mlrequest import Classifier
classifier = Classifier('your-api-key')
features = {
'skies': 'clear',
'temperature': 77,
'pressure': 28.83
}
r = classifier.predict(features=features, model_name='rain-or-shine', class_count=2)
r.predict_result
import requests
features = {
'skies': 'clear',
'temperature': 77,
'pressure': 28.83
}
payload = {
'model_name': 'rain-or-shine',
'class_count': 2,
'features': features
}
r = requests.post('https://api.mlrequest.com/v1/classifier/predict', json=payload, headers={'MLREQ-API-KEY':'your-api-key'})
Coming soon...
Coming soon...
Coming soon...
Coming soon...
Coming soon...