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

Naive_Bayes Mini-Project: nb_author_id code error #10

@okoriechinonso1

Description

@okoriechinonso1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions