lmoroney / tfbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chapter 6/sarcasm_swivel.ipynb contains a cell from another NB

STRZGR opened this issue · comments

The eighth cell in sarcasm_swivel.ipynb appears to be from a different notebook, since it references two variables (training_padded and testing_padded) that have not yet been defined.

# Need this block to get it to work with TensorFlow 2.x
import numpy as np
training_sentences = np.array(training_padded)
training_labels = np.array(training_labels)
testing_padded = np.array(testing_padded)
testing_labels = np.array(testing_labels)

This is fixed now, thanks!