Hi,
First let me thank you for the detailed and really well explained HAN example! I was looking for days for such a source to get up and running with attention visualisation in NLP.
I have prepared my data as in the description, everything runs smoothly until I get to training: han.fit_generator(..., which stops and throws:

I've noticed that it has to do something with the metrics, but couldn't figure out what's next.
Btw, is there a specific version of Keras and Tensorflow I should run this example? Currently I'm on tensorflow: 2.4.1 and keras: 2.4.3 (both being probably the latest)
Thanks!!
Hi,
First let me thank you for the detailed and really well explained HAN example! I was looking for days for such a source to get up and running with attention visualisation in NLP.
I have prepared my data as in the description, everything runs smoothly until I get to training:
han.fit_generator(..., which stops and throws:I've noticed that it has to do something with the metrics, but couldn't figure out what's next.
Btw, is there a specific version of Keras and Tensorflow I should run this example? Currently I'm on tensorflow: 2.4.1 and keras: 2.4.3 (both being probably the latest)
Thanks!!