Naive Bayes is a popular (baseline) method for text-classification.
Questions tagged [naivebayes]
1035 questions
0
votes
2 answers
How to identify the ID / name / title of the misclassified text file with sci-kit learn
I am buidling my own classifier for text classification but at the moment I am playing with sci-kit learn in order to figure out few things. I classified few of my text files using NB classifier. I am using 26 text files manually categorised into 2…

guzdeh
- 15
- 6
0
votes
1 answer
Unable to use Pandas and NLTK to train Naive Bayes (machine learning) in Python
Here is what I am trying to do. I have a csv. file with column 1 with people's names (ie: "Michael Jordan", "Anderson Silva", "Muhammad Ali") and column 2 with people's ethnicity (ie: English, French, Chinese).
In my code, I create the pandas data…

KubiK888
- 4,377
- 14
- 61
- 115
0
votes
1 answer
Naive Bayes Multinomial
I am working with naive bayes multinomial model. I am supposed to use the pseudo code seen in the train method. So those are my questions:
1)I have put most code in but I have some problems mainly in extracting the vocabulary, counting the number of…

Captain_JLP
- 25
- 5
0
votes
1 answer
MATLAB Naive Bayes object storing
After using:
nb = NaiveBayes.fit(training, class)
To create a Naive Bayes classifier object, I want to save N-by-D of these objects in a matrix.
I have tried to do the following
ARRAYOFNAIVEBAYES(2,3) = nb;
But I get: "Error using…

Stack Player
- 1,470
- 2
- 18
- 32
0
votes
1 answer
Calculating the area under curve from classification accuracy
I have an assignment:
Using Naive Bayes we built a model on some data with 2 classes (model returns 2 probabilities - one for positive and one for negative class). We calculated the area under ROC curve AUC = 0.8 and classification accuracy CA = 0.6…

peech
- 931
- 3
- 12
- 23
0
votes
1 answer
Print out prediction with WEKA in Java
I am trying to make a prediction with Weka in Java, using the Naive Bayes Classifier, with the following code:
JAVA
public class Run {
public static void main(String[] args) throws Exception {
ConverterUtils.DataSource source1 = new…

letsjak
- 359
- 3
- 14
0
votes
1 answer
opinin mining using naive bayes classifier
I am working an classifying tweets as positive or negative opinion. I heard Naive Bayes classifier is used commonly for classifying and I would like to write my own Naive Bayes Classifier for my project. Since, I am new to Data Mining and Naive…

Madhan Gokul
- 173
- 1
- 8
0
votes
3 answers
Classification using Naive Bayes
I am trying to Classify a sample using Naive Bayes. My sample size is 2.8million records, 90% of the records have Class Label(dependent variable) = "0" and the rest have it as "1". The distribution in the testing set is also the same(90% - 10%)
The…

user1946217
- 1,733
- 6
- 31
- 40
0
votes
1 answer
Naive Bayes in Python
I'm trying to do Laplace smoothing on my Naive Bayes code. It gives me 72.5% accuracy on 70% train 30% test set, which is kinda low. Does anyone see anything wrong?
posTotal=len(pos)
negTotal=len(neg)
for w in larr:
if (w not in pos) or (w not in…

Ugur
- 184
- 1
- 16
0
votes
1 answer
Naive Bayes Computation in Perl / Moose
Here is some code I wrote to calculate the probability of labels with respect to some observed features using a Naive Bayes classifier. This is intended to compute the Naive Bayes formula without smoothing, and is intended to calculate the actual…

David Williams
- 8,388
- 23
- 83
- 171
0
votes
2 answers
Accurancy of Naive Bayesian classifier?
Is there any percent for accurancy of Naive Bayesian classifier that can we use to check how accurate is our classifier?

vikifor
- 3,426
- 4
- 45
- 75
0
votes
1 answer
Multinomial Naive Bayes for OpenCV
I'm looking for a Multinomial Naive Bayes classifier written in C/C++ for use with OpenCV.
I'm looking for the Algorithm (or a readymade implementation) as it will be more helpful as I'm trying to understand on how it works?

garak
- 4,713
- 9
- 39
- 56
-1
votes
0 answers
Why do my Naive Bayes model and CNN model perform similarly?
I have built a multinomial naive bayes model and a CNN model for binary sentiment analysis. Trained and tested on the same dataset, yet the MNB model has 0.88 accuracy and the CNN model has 0.89. From previous literature on the subject I expected a…

Svart
- 1
-1
votes
1 answer
How to classify the resume either fit or not to the job requirements using Naive Bayes
I have this dataset of resume of an applicants where it contains location, timeframe of experiences, educations, certifications, skills and languages and from the dataset I want to classify which resume that most fit to a certain job according to…
-1
votes
1 answer
how can I remove certain categories from my dataset
I am trying to make a ml model that can predict the category of the given sentence using MNB but in the training data there are unwanted classes in it . How can I remove that data
This is the datset iam using
this dataset does not belong to…

Rijil Varghese
- 1
- 1