How-to-build-own-text-summarizer-using-deep-learning icon indicating copy to clipboard operation
How-to-build-own-text-summarizer-using-deep-learning copied to clipboard

unable to understand how X and y are being sent into model.fit

Open cerofrais opened this issue 4 years ago • 1 comments

Can you please explain what is happening where you are sending in y_tr[:,:-1] into as X into the model.

history=model.fit([x_tr,y_tr[:,:-1]], 
                            y_tr.reshape(y_tr.shape[0],y_tr.shape[1], 1)[:,1:] ,
                            epochs=50,
                           callbacks=[es],
                           batch_size=128, 
                           validation_data=([x_val,y_val[:,:-1]],
                            y_val.reshape(y_val.shape[0],y_val.shape[1], 1)[:,1:]))

cerofrais avatar Jul 16 '20 11:07 cerofrais

when I execute this codeing area,I am also facing this issue, if you found the solution could you please help TypeError: Expected Operation, Variable, or Tensor, got 1(or 0).

HelloWorldlry avatar Jul 27 '20 01:07 HelloWorldlry