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 : <bound method AtkEntityType.__name__ of <trustedanalytics.rest.jsonschema.AtkEntityType object at 0x7f9e68702090>>
frame : <bound method AtkEntityType.__name__ of <trustedanalytics.rest.jsonschema.AtkEntityType object at 0x7f9e686f3fd0>>
observation_columns : list (default=None)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
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
<bound method AtkEntityType.__name__ of <trustedanalytics.rest.jsonschema.AtkEntityType object at 0x7f9e686f3fd0>>
A new frame consisting of the existing columns of the frame and new columns. The data returned is composed of multiple components:
double : ‘k’ columnsSquared distance of each point to every cluster center.int : predicted_clusterThe cluster assignment.