C3_W2_RecSysNN_Assignment 0111

I am receiving following error after executing following code in practice lab 2 ( content based filtering)
tf.random.set_seed(1)
model.fit([user_train[:, u_s:], item_train[:, i_s:]], y_train, epochs=30)

following is error
<tensorflow.python.keras.callbacks.History at 0x7ff4d4ac9d50>

Please advise

Hello @Sudhir_Nandamuru,

This is not an error. The model.fit(...) method will return a History object which includes things like the training loss values at each epoch, so that we can use it for purposes like plotting the training curve. <tensorflow.python.keras.callbacks.History at 0x7ff4d4ac9d50> is the name of that History object.

Since this is not an error, you can just leave it there.

In the future, when you write your own code, and you put model.fit(...) in the last line of a code cell, you can change the line to _ = model.fit(...). The _ is the variable name we very often use to keep things that we don’t really need and can be overwritten any time. WIth _ = model.fit(...), the History object will be assigned to _.

Raymond

@rmwkwok thanks for your input and guidance. I went past this step now…

Sudhir

You are welcome Sudhir!