Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix predict classes #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

JTibs18
Copy link

@JTibs18 JTibs18 commented Dec 7, 2023

model.predict_classes() is depreciated

replaced all instances of predicted = model.predict_classes(token_list) with:

pred_classes = model.predict(token_list, verbose=0)
predicted = np.argmax(pred_classes, axis=-1)

as per this stackoverflow discussion

@andrew-delph
Copy link

@lmoroney Are we able to merge this?

I see in the book the tf version is 2.0.0 but installing it seems a bit difficult. xD

Or could we a requirements.txt?

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

Successfully merging this pull request may close these issues.

2 participants