Trying to do the exercises with Python 3, TF, and Keras 2 and looking at this code in lesson 4:
def embedding_input(name, n_in, n_out, reg):
inp = Input(shape=(1,), dtype='int64', name=name)
return inp, Embedding(n_in, n_out, input_length=1, W_regularizer=l2(reg))(inp)
There are several regularization parameters now and I’m not sure what they do or which one is the replacement for the W_regularizer param above.