摘要 |
The present disclosure relates to a method and a device for clustering. The method for clustering includes: obtaining a weighted distance between classes according to a weight coefficient corresponding to an inter-object distance, the weight coefficient is determined according to a similarity between two objects, i.e. the inter-object distance is weighted; and then combining the classes whose weighted distances meet a combining condition, which is terminated until the number of the classes after combining is the same as the number of the classes before combining, and obtaining a clustering result. |