GateNLP / gate-lf-pytorch-json

PyTorch wrapper for the LearningFramework GATE plugin
Apache License 2.0
1 stars 2 forks source link

Create our own module API #28

Open johann-petrak opened 5 years ago

johann-petrak commented 5 years ago

Maybe create our own module base class, with an API that is similar to Keras', providing fit, fit_generator, predict etc (with similar method parameters).

Downside could be that having the whole training strategy separately allows to use completely different training strategies.

We definitely need a standard way to distinguish between forward and whatever is supposed to calculate the loss, between these can be different things, and also between forward and predict!