Commands model:gmm/new¶
Create a ‘new’ instance of a gmm model.
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | model:gmm/new |
---|---|
arguments: | dummy_model_ref : Model
name : unicode (default=None)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
A Gaussian Mixture Model [1] represents a distribution where the observations are drawn from one of the k Gaussian sub-distributions, each with its own probability. Each observation can belong to only one cluster, the cluster representing the distribution with highest probability for that observation.
The gmm model is initialized, trained on columns of a frame, and used to predict cluster assignments for a frame. This model runs the MLLib implementation of gmm [2] with enhanced feature of computing the number of elements in each cluster during training. During predict, it computes the cluster assignment of the observations given in the frame.
footnotes
[1] | https://en.wikipedia.org/wiki/Mixture_model#Multivariate_Gaussian_mixture_model |
[2] | https://spark.apache.org/docs/1.5.0/mllib-clustering.html#gaussian-mixture |
Response¶
Status
200 OK
Body
Returns information about the command. See the Response Body for Get Command here below. It is the same.