NaiveBayes
Royalty FreeLanguage
Java
Metrics
API Calls - 178
Avg call duration -
N/A
Permissions
This is not a recognized license.
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.
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
Input
Output
"\nResults\n=======\n\nCorrectly Classified Instances 8778 73.15 %\nIncorrectly Classified Instances 3222 26.85 %\nKappa statistic 0.7015\nMean absolute error 0.0536\nRoot mean squared error 0.2308\nRelative absolute error 29.8094 %\nRoot relative squared error 76.9527 %\nTotal Number of Instances 12000 \n"
Install and use
Install
Install the Algorithmia CLI client by running:
curl -sSLf https://algorithmia.com/install.sh | sh
Then authenticate by running:
$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
Use
algo run weka/NaiveBayes/0.1.1 -d '{
"trainUrl":"data://weka/WekaSampleCollection/train.arff",
"cv":5,
"options":"",
"mode":"train",
"modelUrl":"data://.algo/temp/model.txt"
}' --timeout 300