Graph Clustering and Community Detection (Unsupervised)
Explore unsupervised graph machine learning techniques to detect communities and clusters in graph data. Understand how to apply DeepWalk embeddings, tune hyperparameters, and use label propagation. This lesson guides you through practical tasks such as clustering nodes in social networks and evaluating results with normalized mutual information scores.
We'll cover the following...
Graph clustering is one of the essential unsupervised tasks. This is a type of graph mining task, and it's helpful in many applications, such as marketing and congestion detection.
K-means clustering
We must first learn the graph embeddings if we use K-means clustering on a graph dataset. Like the previous sections, we can explore DeepWalk to learn the embeddings and then apply K-means clustering.
Let's try to tune the hyperparameters of DeepWalk this time and compute the best performance of graph embeddings on the data of Zachary’s Karate Club.
Let’s look at the code explanation below:
Line 9: Instantiates
karate_club_graph.Line 10: Stores label data.
Lines 13–14: Train the
DeepWalkmodel to compute the graph embeddings. ...