Beginning with ML
There are many guides and books on how to do sentiment analysis using NLP. There are very few guides and books that give a step-by-step demonstration of how to convert graph data into a format that can be used for classification with ML. In this chapter, you will see how to use graph data for ML classification.
For this exercise, I created a little game I’m calling “Spot the Revolutionary.” As with the last two chapters, we will be using the networkx Les Miserables network as it contains enough nodes and communities to be interesting. In previous chapters, I pointed out that the revolutionary community was densely connected. As a reminder, this is what it looks like:
Figure 10.1 – Les Miserables Les Amis de l’ABC network
Each member of the community is connected with each other member, for the most part. There are no connections with outside people.
Other parts of the network look different.
...