@Override public void iterationDone(Model model, int iteration) { double scoreLocal = model.score(); if (scoreLocal != scoreLocal) { numNanEncounteredConsecutively++; } else { numNanEncounteredConsecutively = 0; score += score; n++; } if (numNanEncounteredConsecutively > 100) { wrapper.stopFit(); } } };
epochTerminate = true; termReason = c; wrapper.stopFit(); break;
epochTerminate = true; termReason = c; wrapper.stopFit(); break;