Commands model:svm/new¶
[ALPHA] Create a ‘new’ instance of a Support Vector Machine model.
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | model:svm/new |
---|---|
arguments: | dummy_model_ref : Model
name : unicode (default=None)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
Support Vector Machine [1] is a supervised algorithm used to perform binary classification. A Support Vector Machine constructs a high dimensional hyperplane which is said to achieve a good separation when a hyperplane has the largest distance to the nearest training-data point of any class. This model runs the MLLib implementation of SVM [2] with SGD [3] optimizer. The SVMWithSGD model is initialized, trained on columns of a frame, used to predict the labels of observations in a frame, and tests the predicted labels against the true labels. During testing, labels of the observations are predicted and tested against the true labels using built-in binary Classification Metrics.
footnotes
[1] | https://en.wikipedia.org/wiki/Support_vector_machine |
[2] | https://spark.apache.org/docs/1.5.0/mllib-linear-methods.html#linear-support-vector-machines-svms |
[3] | https://en.wikipedia.org/wiki/Stochastic_gradient_descent |
Response¶
Status
200 OK
Body
Returns information about the command. See the Response Body for Get Command here below. It is the same.