ud120-projects-py3-jupyter icon indicating copy to clipboard operation
ud120-projects-py3-jupyter copied to clipboard

Naive_Bayes Mini-Project: nb_author_id code error

Open okoriechinonso1 opened this issue 2 years ago • 0 comments

Hi, thanks so much for simplifying and getting the codes to work on jupyter notebook virtual environment. I am using your files and my virtual environment has been set up successfully and running. However, I am trying to run the notebook file for the naive bayes classifier project but I keep getting this error. What can be done to fix this:

UnpicklingError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_34924\3868588496.py in ----> 1 gaussian_classifier(preprocess()) c:\Users\okori\Documents\Workspace\ud120-projects-py3-jupyter\02-naive-bayes../utils\email_preprocess.py in preprocess(words_file, authors_file) 28 29 with open(words_file, 'rb') as f: ---> 30 word_data = pickle.load(f) 31 32 # test_size is the percentage of events assigned to the test set UnpicklingError: the STRING opcode argument must be quoted

okoriechinonso1 avatar Jan 06 '23 07:01 okoriechinonso1