At the following link it is possible to find the exercise of lecture 16 about the application of Naive Bayes on 20 User Newsgroup dataset, and its comparison with other classifiers:
https://colab.research.google.com/drive/1bW9L_Su33_HXlUSqjOalnF596Ay_B944?usp=sharing