While working on the Naive Bayes, I came across the subset argument, and don’t understand what it does.
For example-
train_emails = fetch_20newsgroups(categories = ['comp.sys.ibm.pc.hardware','rec.sport.hockey'], subset = 'train')
What does the subset=‘train’ bit do? How will my code be affected if I do not use it?