python - Scipy hierarchial clustering - clusterize new vector -


i clusterizing bunch of feature vectors using scipy linkage ward method.

i want predictive model works in 2 steps:

  1. training data clusterized
  2. a new vector comes, distance between vector , each cluster computed, new vector assigned "nearest" cluster's label

how can compute distances between new vector , precomputed clusters?

use euclidean metric? think precomputed clusters have center. can calculate distanc between every center , new vector.


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -