Hi , I am attempting to recreate the code from this lecture(Week 2, MLOps Course 3) and I keep getting the following error shown in the screenshot. Is there any part of the code that is not shown in the video that could fix this error. I get the same error for the 1000 dimensional setup as well as the 6 dimensional setup.
Please let me know how i can fix, thanks!
Model setup:
Please fix the validation_data parameter of model.fit call.
You are passing in reuters_test_x with reuters_train_y. You should use reuters_test_y instead.
Also, model.fit returns a history object and not a model.
Even though this worked, shouldn’t the second param in keras.layers.Embedding be 1000?
In the 1000 dim example he uses 1000 as well as num_words, for the second and first args respectively.
In the subsequent example when Prof is working with 6 dimensions, he passes keras.layers.Embedding(num_words, 6, input_length = 20)
and the second var is 6, while the first is num_words which is still the same as before , 1000.
Basically, im asking why this second value not 1000 but 100?