The Monitor baseclass doesn't do anything useful - monitors should just be Python functions that potentially take a StatsCollector and a Units instance as arguments. Should it turn out to be necessary to make them 'richer', then it's better to use annotations, which is more in line with Samplers and ActivationFunctions.
The Monitor baseclass doesn't do anything useful - monitors should just be Python functions that potentially take a StatsCollector and a Units instance as arguments. Should it turn out to be necessary to make them 'richer', then it's better to use annotations, which is more in line with Samplers and ActivationFunctions.