XMeansClusterer
Royalty FreeLanguage
Java
Metrics
API Calls - 29
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.
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
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
Use
algo run weka/XMeansClusterer/0.1.3 -d '{
"trainUrl":"data://weka/WekaSampleCollection/cpu.arff",
"modelUrl":"data://.algo/temp/model.txt",
"mode":"train"
}' --timeout 300