(retrain)
| 57 | } |
| 58 | |
| 59 | function setRetrainFunction(retrain) { |
| 60 | const retrainButton = document.getElementById('retrain'); |
| 61 | retrainButton.addEventListener('click', async () => { |
| 62 | document.getElementById('retrain').disabled = true; |
| 63 | await retrain(); |
| 64 | }); |
| 65 | } |
| 66 | |
| 67 | export function getProgressBarCallbackConfig(epochs) { |
| 68 | // Custom callback for updating the progress bar at the end of epochs. |