What do you mean by “sometimes”? What changes between instances where it works and instances where it stops? Is it random? And how long do you wait for? Note, that training can take a long time if you have a lot of data.
Thanks for your reply.
The situation appears ramdomly, sometimes the train completed successfully,but sometimes it failed, there are no rules in the process.
But when I change the keraspolicy into sklearnpolicy ,the problem vanished.
I don’t know whether the changed policy has any negative effect on my model.
So is it a keras bug?
how can I fix it?
Could you fix the random seed and see if it is random anyway? If so, you might suffer from a hardware problem (overheating that slows down your machine), or the OS is doing something strange. If, on the other hand, fixing the seed fixes the problem (or always triggers the problem), then something might be wrong in the algorithm. What Rasa version do you use?