Clustering Weka java API -
while implementing simple kmeans clustering via weka java api, how select attributes based on clustering performed. have tried next line of code:
filteredclusterer fc=new filteredclusterer(); string[] options=new string[2]; options[0]="-r"; options[1]="1"; remove remove=new remove(); remove.setoptions(options); remove.setinputformat(train); fc.setfilter(remove); fc.setclusterer(clusterer); fc.buildclusterer(train);`
but error generated , says arrayindexoutofbound
java
No comments:
Post a Comment