Category : data-mining

I’m trying to fit the GaussianNB() classifier to a dataset but I’m running into this error: ————————————————————————— ValueError Traceback (most recent call last) /tmp/ipykernel_8812/3612414008.py in <module> 11 print("y_test : " + str(y_test.shape)) 12 —> 13 y_pred = gnb.fit(X_train, y_train).predict(X_test) 14 15 print("Number of mislabeled points out of a total %d points : %d" % (X_test.shape[0], ..

Read more

For my current project, I have two folders: Training Folder not spam spam Testing Folder not spam spam I then read everything from the training folder into one array (with labels spam and not spam) and do the same for the testing folder. I want to use one specifically for testing and one for branching. ..

Read more