TextClassification
TextClassification copied to clipboard
Simple practice for text classification using Python
Hi, out of many classification algorithms tested your implementation of Naive Bayes gives best accuracy on my data-set. Thank you. If I give a document as a query, I would...
shuffle data before splitting to test and train subset and train classifiers on the shuffled data. It will affect classifiers like kNN.
To increase readability, annotate confusion matrix plots using this code: ``` python fig = plt.figure(figsize=(7, 7)) ax = fig.add_subplot(111) ax.set_aspect(1) res = ax.imshow(conf_mat, cmap=plt.cm.jet, interpolation='nearest') width = len(conf_mat) height =...