weka

weka / XMeansClusterer / 0.1.3

XMeansClusterer

Royalty Free API Calls - 26
Permissions
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn More
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.

Run an Example

Input
Output
"\nXMeans\n======\nRequested iterations            : 1\nIterations performed            : 1\nSplits prepared                 : 2\nSplits performed                : 1\nCutoff factor                   : 0.5\nPercentage of splits accepted \nby cutoff factor                : 0 %\n------\nCutoff factor                   : 0.5\n------\n\nCluster centers                 : 3 centers\n\nCluster 0\n            45.94736842105263 8029.368421052632 30031.842105263157 85.73684210526316 13.657894736842104 44.8421052631579 354.7368421052632\nCluster 1\n            148.35333333333332 1872.6666666666667 8291.08 13.266666666666667 2.953333333333333 13.813333333333333 54.89333333333333\nCluster 2\n            885.7142857142857 637.7142857142857 3834.4761904761904 0.9523809523809523 0.9523809523809523 2.0 17.19047619047619\n\nDistortion: 52.578638\nBIC-Value : 676.233187\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
# Enter API Key: YOUR_API_KEY
CLI Install Docs

Use



algo run weka/XMeansClusterer/0.1.3 -d '{
"trainUrl":"data://weka/WekaSampleCollection/cpu.arff",
"modelUrl":"data://.algo/temp/model.txt",
"mode":"train"
}'
  
CLI Docs