Regression

Online learning regression API.

post
Learn

https://api.mlrequest.com/v1/regression/learn
Updates an online linear regression model with a single label.
Request
Response
Headers
MLREQ-API-KEY
required
string
Your API key
Body Parameters
model_name
required
string
The name of this model
features
required
object
A map of feature names and their values
label
required
number
The correct (continuous) target for this example
200: OK
{
"message": "OK",
"remainingTransactions": 12345,
"total_active_models": 3,
"timestamp": "2019-10-05T02:33:23.972Z"
}

post
Predict

https://api.mlrequest.com/v1/regression/predict
Returns a single online linear regression model prediction.
Request
Response
Headers
MLREQ-API-KEY
required
string
Your API key
Body Parameters
model_name
required
string
The name of this model
features
required
object
A map of feature names and their values
200: OK
{
"message": "Classifier prediction",
"predict_result": 543.21,
"model_name": "my-model",
"remainingTransactions": 12345,
"total_active_models": 3,
"timestamp": "2019-10-05T02:33:23.972Z"
}

post
Batch Learn

https://api.mlrequest.com/v1/regression/batch/learn
Updates an online linear regression model with up to 100 labels.
Request
Response
Headers
MLREQ-API-KEY
required
string
Your API key
Body Parameters
model_name
required
string
The name of this model
training_data
required
string
A list of objects, each of which contain a feature map and an associated label. See example above.
200: OK
{
"message": "OK",
"remainingTransactions": 12345,
"total_active_models": 3,
"timestamp": "2019-10-05T02:33:23.972Z"
}

post
Batch Predict

https://api.mlrequest.com/v1/regression/batch/predict
Returns up to 100 online linear regression model predictions.
Request
Response
Headers
MLREQ-API-KEY
required
string
Your API key
Body Parameters
model_name
required
string
The name of this model
features
required
string
A map of feature names and their values
200: OK
{
"message": "Classifier prediction",
"predict_result": 543.21,
"model_name": "my-model",
"remainingTransactions": 12345,
"total_active_models": 3,
"timestamp": "2019-10-05T02:33:23.972Z"
}