add kmeans hadoop
This commit is contained in:
9
toolkit/kmeans_hadoop.sh
Executable file
9
toolkit/kmeans_hadoop.sh
Executable 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user