keras-io icon indicating copy to clipboard operation
keras-io copied to clipboard

fix example in IMDB dataset docs

Open lukasnalezenec opened this issue 3 years ago • 0 comments
trafficstars

Last example contains line " ".join(inverted_word_index.get[i] for i in x_train[0]) But it is wrong it have to be " ".join(inverted_word_index.get(i - 3, "?") for i in x_train[0]) Since first indexed are reserved.

lukasnalezenec avatar Aug 18 '22 13:08 lukasnalezenec