No, I should have just copy-pasted right away xD
Here is what I did:
# import libraries
try:
#%tensorflow_version only exists in Colab.
#!pip install tf-nightly
pass
except Exception:
pass
import tensorflow as tf
import pandas as pd
from tensorflow import keras
#!pip install tensorflow-datasets
#import tensorflow_datasets as tfds
import numpy as np
import matplotlib.pyplot as plt
print(tf.__version__)
Note the “pass” in the try-except → I think the try-block cannot be empty. Though no idea.
Also I commented them out so in case I come back, I know what I changed.
hm… I don’t know this dropout or this Bidirectional layer, though I haven’t looked all to much into LSTM after the challenge. My model is complete basic, apart from the provided stuff it’s just a plain LSTM with some neurons.