Commands model:k_means/train¶
[BETA] Creates KMeans Model from train frame.
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | model:k_means/train |
---|---|
arguments: | model : Model
frame : Frame
observation_columns : list
column_scalings : list
k : int32 (default=2)
max_iterations : int32 (default=20)
epsilon : float64 (default=0.0001)
initialization_mode : unicode (default=k-means||)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
Creating a KMeans Model using the observation columns.
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
- dictionary
- A dictionary with trained KMeans model with the following keys:
‘cluster_size’ : dictionary with ‘Cluster:id’ as the key and the corresponding cluster size is the value ‘within_set_sum_of_squared_error’ : The set of sum of squared error for the model.