Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Naive_Bayes Mini-Project: nb_author_id code error #10

Open
okoriechinonso1 opened this issue Jan 6, 2023 · 0 comments
Open

Naive_Bayes Mini-Project: nb_author_id code error #10

okoriechinonso1 opened this issue Jan 6, 2023 · 0 comments

Comments

@okoriechinonso1
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant