python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
After executing the last line i get following error: ValueError: y should be a 1d array, got an array of shape (4457, 2) instead
y = pd.get_dummies(messages['label'])
y = y.iloc[:,1].values
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.20,random_stat...
RUPENDRA S. KHANGAROT
Votes: 0
Answers: 1
All classifiers are locked in weka
I want to start text classifying a database and all classifiers are locked and i can't use any of them, i've used stringtowordVector filter for them to open and they're still locked and this is my arf...
Laila Nehad
Votes: 0
Answers: 1
Why doesn't this data work with the Naïve Bayes algorithm?
It is in ARFF format. If you're not familiar with ARFF, it's basically that everything under the @data marker is in CSV.
For clarification, I am trying to use the dataset on Weka but the option to use...
Hermes3
Votes: 0
Answers: 1