1. Configure Weka environment variables;2. Write Perl, as follows:########################################################################################################### ################### #!/usr/bin/perlUse strict;Use warnings;open FILE, ">./weka_pl_sys.txt" | | Die ($!);print FILE ' java weka.clusterers.simplekmeans-n 4-a ' weka.core.euclideandistance-r first-last "-I 500-num-slots 1 -S 200-t Example_cluster_id_h24_200.arff ';close FILE;########################################################################################################### ###################3. Read the weka_pl_sys.txt.In addition: PHP calls Perl and then reads result can be achieved after the data clustering page display. You can also download LIBSVM and WLSVM package LIBSVM in. connect to the database? Kettle Connection, Perl program put in, OK.
From for notes (Wiz)
Perl calls to Weka