Help!!!
Have you passed all the above exercises?
@saifkhanengr Yes, I believe I got them through to that point in DM. But I have no idea what this error could be.
Please share the notebook with me in a private message.
It would be helpful to check the exact error message traceback to provide more specific guidance.
@nadtriana what I don’t understand is the model must have compiled ‘ok’ to get to that point so…
I have not seen their entire notebook though.
I’ve never seen that error either.
yes
model = keras.Sequential(
[
layers.Dense(2, activation="relu", name="layer1"),
layers.Dense(3, activation="relu", name="layer2"),
layers.Dense(4, name="layer3"),
]
)
# Call model on a test input
x = ops.ones((3, 3))
y = model(x)
What does the last line do?
y=model(x)
Can anyone please list down the commands it runs in sequence? like model.compile, model.fit, model.predict etc. in correct order.
It does none of those things. It simply invokes the model with an input and gives you an output. You’ll need to write the logic to compile and fit the model separately.
What does have to do with DLS C4 W2? I don’t remember any code like that in any of the assignments there. You can find examples in the various assignments of how to train TF models.