Skip to main content
0 votes
1 answer
25 views

I've been successful in training a TextBlob NaiveBayes sentiment classifier, with fairly high accuracy, and I'm trying to iterate it in a comment dataset to do a coder reliability test. The only issue ...
Laura Valentini's user avatar
0 votes
1 answer
41 views

I have the following trained classifier: classifier = nltk.NaiveBayesClassifier.train(features[:train_count]) When I try to use it to classify(): result = classifier.classify(feature) and feature is ...
khteh's user avatar
  • 4,280
1 vote
0 answers
46 views

I am trying to use k-fold cross-validation on a WESBROOK dataset. It uses the train function from the caret package to do this. So far this function has worked for me with methods such as svm, knn and ...
user avatar
-1 votes
1 answer
66 views

I am trying to build a model to predict "species" based on data with features "message", "tail", and "finger", and label "species"(see the first few ...
harry's user avatar
  • 113
-1 votes
1 answer
67 views

I am following this tutorial for language detection using machine learning. In the dataset I am using, however, there are multiple variables as features. I tried, in the place of X = data["Text&...
harry's user avatar
  • 113
-1 votes
1 answer
65 views

Recently I've started a Python sentiment analysis training course, wherein I've got the first task, that is to process a dataset of IMDB reviews through 2 different models: lexical analysis with ...
ИСПАНСКАЯ МАТЬ's user avatar
0 votes
1 answer
51 views

I'm doing text classification with Naive Bayes in Python and want to figure out which words are used for deciding to what class a text belongs. I have found this answer https://stackoverflow.com/a/...
user3992979's user avatar
0 votes
2 answers
80 views

I'm working on a uni project and the deadline is coming soon. I was assigned a naive bayes classification problem using bnlearn. After reading from the dataset, I've done the usual train-test split, ...
Filos's user avatar
  • 13
0 votes
1 answer
21 views

The model in linear regression is $y = \omega^T x + e$ , where x, y, e represent the feature, the target and the noise, respecively. p(y|x, omega) is often termed the likelihood function for the ...
Andy's user avatar
  • 111
0 votes
1 answer
68 views

As shown below, the balanced, one dimensional data below can be perfectly separated by sklearn GaussianNB. Why is it that sklearn ComplementNB gives classifications that are all zeros for the same ...
HOSS_JFL's user avatar
  • 839
0 votes
0 answers
210 views

I need to load a VotingClassifier model (a mix of XGBoost and NaiveBayes) that is in .sav format. The goal is to convert it to ONNX. However, I don't have access to the dataset, so I cannot retrain ...
dev_ds's user avatar
  • 1
0 votes
0 answers
44 views

I trained a Naive Bayes multinomial model for binary classification of text for the presence of personal data in it. model = MultinomialNB() model.fit(X_train, y_train) I can't figure out how to use ...
Dmitriy Neledva's user avatar
1 vote
2 answers
702 views

I am currently working on a project where I'm attempting to use Word2Vec in combination with Multinomial Naive Bayes (MultinomialNB) for accuracy calculations. import pandas as pd import numpy as np, ...
celsowm's user avatar
  • 474
1 vote
2 answers
3k views

I am trying to remove punctuation and spaces (which includes newlines) and filter for tokens consisting of alphabetic characters only, and return the token text. I first define the function return [...
Nachonacho Nachonacho's user avatar
0 votes
2 answers
205 views

This is a basic implementation of Gaussian Bayes using sklearn. Can anyone tell me what I'm doing wrong here, my K-Fold CV results are a bit weird: import numpy as np import pandas as pd from sklearn....
Questions123's user avatar

15 30 50 per page
1
2 3 4 5
69