Commands model:naive_bayes/new¶
Create a ‘new’ instance of a Naive Bayes model
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | model:naive_bayes/new |
---|---|
arguments: | dummy_model_ref : Model
name : unicode (default=None)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
Naive Bayes [1] is a probabilistic classifier with strong independence assumptions between features. It computes the conditional probability distribution of each feature given label, and then applies Bayes’ theorem to compute the conditional probability distribution of a label given an observation, and use it for prediction. The Naive Bayes model is initialized, trained on columns of a frame, tested against true labels of a frame and used to predict the value of the dependent variable given the independent observations of a frame and test the performance of the classification on test data. This model runs the MLLib implementation of Naive Bayes [2].
footnotes
[1] | https://en.wikipedia.org/wiki/Naive_Bayes_classifier |
[2] | https://spark.apache.org/docs/1.5.0/mllib-naive-bayes.html |
Response¶
Status
200 OK
Body
Returns information about the command. See the Response Body for Get Command here below. It is the same.