NaiveBayesMultinomial

Algorithmia Platform License
apl
· Internet Access

This algorithm has Internet access.

This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
· Calls Other Algorithms

This algorithm has permission to call other algorithms.

This allows an algorithm to compose sophisticated functionality using other algorithms as building blocks, however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls.

Run an Example

"\nResults\n=======\n\nCorrectly Classified Instances       10092               84.1    %\nIncorrectly Classified Instances      1908               15.9    %\nKappa statistic                          0.8232\nMean absolute error                      0.0322\nRoot mean squared error                  0.1708\nRelative absolute error                 17.8981 %\nRoot relative squared error             56.9451 %\nTotal Number of Instances            12000     \n"

Install & Use

Use

curl -X POST -d '{
"trainUrl":"data://weka/WekaSampleCollection/train.arff",
"cv":5,
"options":"",
"mode":"train",
"modelUrl":"data://.algo/temp/model.txt"
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/weka/NaiveBayesMultinomial/0.1.1