Naive Bayes is a popular (baseline) method for text-classification.
Questions tagged [naivebayes]
1035 questions
0
votes
1 answer
create a custom numeric arff weka
Hello I want to create a following cusotm numeric arff in WEKA. I saw some examples of arff but still confused How I model my problem in arff. I am trying to use it for naive bayes classifier.
attributes = {long, sweet, colour}
long = {yes,…

Patrik
- 1
- 3
0
votes
1 answer
Bayes classifier program to predict the class of give information in java using Jtable
Naive Bayes program to predict the work type for a person with following parameters: age: 30,Qualication: MTech, Experience: 8..
WorkType Age Qualication Experience
Consultancy 30 Ph.D. 9
Service …

Pankaj Andhale
- 401
- 9
- 24
0
votes
1 answer
What data structure should I use to store the dataset of my Naive Bayes classifier?
I'm working on my own version of a Naive Bayes classifier. Right now I train it with a string for label and a hash/dictionary of features.
Here is one example of the training set I'm using:
classifier.train(:male, { height: 6, weight: 180,…

Thiago Belem
- 7,732
- 5
- 43
- 64
0
votes
1 answer
How to get probabilities (instead of a single - actual - class) from NaiveBayesModel in MLlib?
I have built a NaiveBayesModel in MLlib. It works fine but I would like to get back the probabilities of each class for given input instead of the model's final - and single - decision, that is, whether the input belongs to class 1.0 or class 0.0.…

user706838
- 5,132
- 14
- 54
- 78
0
votes
0 answers
How to find cities, counties, and their abbreviations in a string using Python NLTK
I am working to categorize posts from a ride sharing Facebook group by offering or seeking, origin and destination, and date and time.
People will post things like:
Offering: From SF to south west la (Torrance) Leaving around 6 or 7 on this…

Sunjay Dhama
- 49
- 7
0
votes
0 answers
Naive Bayes classifier with intersecting/orthogonal feature sets?
I'm faced with a classification problem that seems to lend itself to Naive Bayes Classifier (NBC). However, I have one problem: usually the NBC works by estimating the most likely Class c out of a set of classes C based on an observation x of a…

Jürgen Simon
- 876
- 1
- 12
- 35
0
votes
0 answers
How create a training file for Spark MLlib Naive Bayes and calculate TF–IDF
I need to classification a lot of products in a category tree,
I'm testing with Spark and Mlib Naive Bayes. But I don't understand how I can calculate the TF-IDF.
I have a trainer file like this:
#filenameTrainer:
103,355 4 50 60 71 72 66 73 57…

faster2b
- 662
- 6
- 22
0
votes
0 answers
R bnlearn - parameter learning with naive.bayes() check.data() error
I have a graph structure, determined from another method, and I want to do parameter learning. The bnlearn methods, however, seem to do parameter learning directly on the dataset (strictly in a dataframe). I have two questions: how do I do parameter…

lrthistlethwaite
- 494
- 2
- 6
- 23
0
votes
1 answer
How to cross validate a Naive Bayes classifier?
I use e1071 for naive classification
function
naiveBayes(x=, y=, )
I want to use cvTools for cross-validation
cvFit(....)
how could I write this, the documentation of cvFit is really hard to understand for me
typeof(naiveBayes) is 'closure'

Hello lad
- 17,344
- 46
- 127
- 200
0
votes
0 answers
Naive Bayes Ticket Classification Python
I currently have a CSV export from our ticketing system with two columns.
Short Description and Class.
Both are created by the agent when logging a ticket.
eg
Data Backup is not working,Backup
Email change in Groups,Notes
backup directory not…

davethebear10
- 5
- 2
0
votes
1 answer
Naive Bayes Sentiment Analysis of Facebook Post
Could any of you help me with the following issue?
My goal is to make a sentiment analysis of the comments of a post to see if the feedback is positive or negative.
To do it, i have the following code of RestFB JAVA API:
Comments commentsPolarity;…

Gabriel Braga
- 41
- 1
- 10
0
votes
1 answer
windows phone c# Bayes algorithm for image processing
am working on windows phone c# and trying to implement Bayes algorithm to compare 2 images and state the percentage of the difference? Any help?
0
votes
3 answers
What is the purpose of cross-validation?
I am working myself through a book on machine learning right now.
Working on a NaiveBayesClassifier the author is very much in favour of the cross-validation method.
He proposes to split the data into ten buckets (files) and train on nine of them…

Andrew Tobey
- 915
- 3
- 10
- 27
0
votes
0 answers
How to use Naive Bayes in R
# training data set
data(x_train)
# training data label
data(y_train)
# test data set
data(x_test)
# test data label
data(y_test)
library(e1071)
#svm
svm_model = svm(x_train,y_train)
y_pred_svm = predict(svm_model,x_test)
y_pred_svm =…

ilovecp3
- 2,825
- 5
- 18
- 19
0
votes
1 answer
Weka Classifier Accuracy
I've got 73,841 instances of data, from 17 classes, that I am using to train a classifier with WEKA. The data has been filtered using FFT, and each instance has three points.
I.e. 85724.5409, 40953.2485, 3204935, 4539024.002345, ?/class
I've tried…

user3089
- 51
- 4