In order to be able to seamlessly swap pyjet models with keras models, pyjet needs to change to use the same API for training and interact the same way with training related keras objects (e.g. callbacks). In order to do so, the following needs to happen:
In order to be able to seamlessly swap pyjet models with keras models, pyjet needs to change to use the same API for training and interact the same way with training related keras objects (e.g. callbacks). In order to do so, the following needs to happen:
compilemethod for SLModel to pass in loss functions, optimizers, and metrics intofit_generatorcreate a training log for callbacks just like Kerasfit_generatorto return a history objectcallnotforwardto useforwardfor some forward pass overheadfit,evaluate, andpredictmethods)