Skip to content

NN Template core

Most of the logic is abstracted from the template into an accompanying library: nn-template-core.

This library contains the logic necessary for the restore, logging, and many other functionalities implemented in the template.

Info

This decoupling eases the updating of the template, reaching a desirable tradeoff:

  • template: easy to use and customize, hard to update
  • library: hard to customize, easy to update

With our approach updating most of the functions is extremely easy, it is just a Python dependency, while maintaing the flexibility of a template.

Warning

It is important to not remove the NNTemplateCore callback from the instantiated callbacks in the template. It is used to inject personalized behaviour in the training loop.