This simple code shows how classifiers' precision varies in response to the increase of the Train set (number of samples). The generated learning curve is then plotted. The code is written in Python and uses the Machine Learning library SKLearn. The Dataset used is 20 NewsGroups. The following classifiers are analized:
- Multinomial Naive Bayes
- Bernoulli Naive Bayes
- Perceptron