Commands model:logistic_regression/test¶
[ALPHA] Predict test frame labels and return metrics.
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | model:logistic_regression/test |
---|---|
arguments: | model : Model
frame : Frame
label_column : unicode
observation_columns : list (default=None)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
Predict the labels for a test frame and run classification metrics on predicted and target labels.
Response¶
Status
200 OK
Body
Returns information about the command. See the Response Body for Get Command here below. It is the same.
GET /v1/commands/:id¶
Request¶
Route
GET /v1/commands/18
Body
(None)
Headers
Authorization: test_api_key_1
Content-type: application/json
Response¶
Status
200 OK
Body
dict
A dictionary with binary classification metrics. The data returned is composed of the following keys:
‘accuracy’ : doubleThe proportion of predictions that are correctly identified‘confusion_matrix’ : dictionaryA table used to describe the performance of a classification model‘f_measure’ : doubleThe harmonic mean of precision and recall‘precision’ : doubleThe proportion of predicted positive instances that are correctly identified‘recall’ : doubleThe proportion of positive instances that are correctly identified.