Helper Module for Deep Learning.
Module that provides common losses.
-
class
pynet.losses.common.MSELoss(concat=False)[source]¶ Calculate the Mean Square Error loss between I and J.
-
class
pynet.losses.common.NCCLoss(concat=False, win=None)[source]¶ Calculate the normalize cross correlation between I and J.
-
class
pynet.losses.common.PCCLoss(concat=False)[source]¶ Calculate the Pearson correlation coefficient between I and J.
-
class
pynet.losses.common.RCNetLoss[source]¶ RCNet Loss function.
This loss needs intermediate layers outputs. Use a callback function to set the ‘layer_outputs’ class parameter before each evaluation of the loss function. If you use an interface this parameter is updated automatically?
PCCLoss
-
class
pynet.losses.common.VMILoss[source]¶ Variational Mutual information loss function.
- Reference: http://bayesiandeeplearning.org/2018/papers/136.pdf -
https://discuss.pytorch.org/t/help-with-histogram-and-loss- backward/44052/5
Follow us
© 2019, pynet developers .
Inspired by AZMIND template.
Inspired by AZMIND template.