add kmeans hadoop

This commit is contained in:
tqchen
2014-12-22 00:31:01 -08:00
parent dcb6e22a9e
commit 5fe3c58b4a
2 changed files with 11 additions and 1 deletions

9
toolkit/kmeans_hadoop.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
if [ "$#" -lt 5 ];
then
echo "Usage: <nslaves> <input_data> <ncluster> <max_iteration> <output>"
exit -1
fi
python ../rabit_hadoop.py -s $1 -i $2 -m kmeans --args "stdin "$3" "$4" stdout" -o $5