Commands model:k_means/predict¶
[BETA] Predict the cluster assignments for the data points.
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | model:k_means/predict |
---|---|
arguments: | model : Model
frame : Frame
observation_columns : list (default=None)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
Predicts the clusters for each data point and distance to every cluster center of the frame using the trained model along
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
Frame
- Frame
- A new frame consisting of the existing columns of the frame and the following new columns: ‘k’ columns : Each of the ‘k’ columns containing squared distance of that observation to the ‘k’th cluster center predicted_cluster column: The cluster assignment for the observation