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

code typos etc discovered by students #9

Open
damian0604 opened this issue Apr 26, 2023 · 0 comments
Open

code typos etc discovered by students #9

damian0604 opened this issue Apr 26, 2023 · 0 comments

Comments

@damian0604
Copy link

(still need to check)

In Exercise 3, from keras.preprocessing.sequence import pad_sequences does not work. I used:
from keras_preprocessing.sequence import pad_sequences instead.

Exercises Week 9

  1. In the "Initialize the pre-trained BERT model" section, there is a typo:
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    model = AutoModelForSequenceClassification.from_pretrained(model_nameame, num_labels=len(id2label)).to(device_name)

"model_nameame" should be "model_name" instead.

Chapter 11.5

  1. In Example 11.14, "get_feature_names()" seems to be outdated. I fixed this by calling the newer version
    "get_feature_names_out()".
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

No branches or pull requests

1 participant