In lesson3-imdb.ipynb, the line
data.train_ds[0][0]
shows as text in the saved notebook but when I run it, I get the numbers associated to the text.
data.train_ds[0][0] returns the same as data.train_ds[0][0].data
I’m using fastai version 1.0.61.
In lesson3-imdb.ipynb, the line
data.train_ds[0][0]
shows as text in the saved notebook but when I run it, I get the numbers associated to the text.
data.train_ds[0][0] returns the same as data.train_ds[0][0].data
I’m using fastai version 1.0.61.
I have encountered the same issue.
data.train_ds[0][0] -> (return) Text [ 2 5 21 16 … 189 108 2223 11]
data.train_ds[0][0].data[:10] -> (return) array([ 2, 5, 21, 16, 9, 103, 1228, 32, 19, 41])