centroid - How to find the distance between instances within a cluster in WEKA? -


i have done clustering set of text documents using weka.it grouped similar documents cluster.i want measure how text documents close each other within cluster.how calculate distance between documents within cluster.

anyone please me.i new user data mining.

this code simplekmeans clustering algorithm:

euclideandistance dist = weka.core.euclideandistance(); double distance = dist.distance(clustercentroid.instance(clusternumber), data.instance(instaceindex)); 

nb: distance normalized


Comments

Popular posts from this blog

javascript - Feed FileReader from server side files -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -