MATLAB Answers

0

Code for text mining through Bayes Classifier?

Asked by Vineet on 24 Apr 2013
Latest activity Answered by Christopher Creutzig on 26 Nov 2018
I am looking for an example of text mining problem through Bayes Classifier. The problem under consideration is analyzing news text for stock market prediction.

  0 Comments

Sign in to comment.

2 Answers

Answer by Sarah Palfreyman on 30 Apr 2018

  0 Comments

Sign in to comment.


Answer by Christopher Creutzig on 26 Nov 2018

MathWorks has examples like this one using classifiers from the Statistics and Machine Learning Toolbox to work on text data. The main problem with converting this to using a naïve Bayes algorithm is that fitcnb is not optimized to work with high-dimensional sparse data, such as a basic word count.
To alleviate that problem, use a dimensionality reduction step, such as fitlsa.

  0 Comments

Sign in to comment.