I have these 2 CSV files:
- train-set.csv
- test-set.csv
Both of them are in the same structure (with different content) and similar to this example :

Each column is a feature and the last column - class, is the name of the class to predict.
.
Can anyone please provide a sample code for:
- Initializing Naive Bayes with a CSV file (model creation, training, required pre-processing, etc...)
- For a given CSV row - predicting a class
Thanks!
.
.
BTW -
I'm using Mahout 0.9 and Hadoop 2.4 and iv'e already tried to follow these links:
http://web.archiveorange.com/archive/v/y0uRZw9Q4iHdjrm4Rfsu http://chimpler.wordpress.com/2013/03/13/using-the-mahout-naive-bayes-classifier-to-automatically-classify-twitter-messages/
.