Commands model:principal_components/train¶
Build principal components model.
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | model:principal_components/train |
---|---|
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
mean_centered : bool (default=True)
k : int32 (default=None)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
Creating a Principal Components 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
Values of the principal components model object storing:
principal components count used to train the model,the list of observation columns on which the model was trained,the singular values vector and the vFactor matrix stored as an array of double values.