Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is pedigree clustering in R language clustering algorithm?

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces what genealogy clustering in R language clustering algorithm refers to, the content is very detailed, interested friends can refer to, hope to be helpful to you.

1. Principle analysis:

There is no need to set the number of categories K first, because it only clusters the two nearest samples / clusters into one class in each iteration, and its operation process will naturally get the clustering results of Knowl to Karmn categories.

two。 Application in R language

Pedigree clustering (Hierarchical Method) is mainly applied to the three functions of hclust (), cutree () and rect.hclust () in stats package (R language built-in package).

Hclust (dmem method = "complete", members=NULL)

Cutree (tree,k=NULL,h=NULL)

Rect.hclust (tree,k=NULL,which=NULL,x=NULL,h=NULL,border=2,cluster=NULL)

3. Taking iris dataset as an example for analysis

1) apply the model and view the corresponding parameters of the model

2) make graphics

Plot (fit_hc)

On the R language clustering algorithm in the pedigree clustering refers to what is shared here, I hope the above content can be of some help to everyone, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 273

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report