The dice loss performance function measures the network's performance according to the dice coefficient between the input and target distributions. More...
Public Member Functions | |
| DiceLoss (const double smooth=1) | |
| Create the DiceLoss object. More... | |
template < typename InputType , typename TargetType , typename OutputType > | |
| void | Backward (const InputType &&input, const TargetType &&target, OutputType &&output) |
| Ordinary feed backward pass of a neural network. More... | |
template < typename InputType , typename TargetType > | |
| double | Forward (const InputType &&input, const TargetType &&target) |
| Computes the dice loss function. More... | |
| OutputDataType & | OutputParameter () const |
| Get the output parameter. More... | |
| OutputDataType & | OutputParameter () |
| Modify the output parameter. More... | |
template < typename Archive > | |
| void | serialize (Archive &ar, const unsigned int) |
| Serialize the layer. More... | |
| double | Smooth () const |
| Get the smooth. More... | |
| double & | Smooth () |
| Modify the smooth. More... | |
The dice loss performance function measures the network's performance according to the dice coefficient between the input and target distributions.
For more information see the following.
{Milletari2016, author = {Fausto Milletari and Nassir Navab and Seyed{-}Ahmad Ahmadi}, title = {V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation}, journal = {CoRR}, volume = {abs/1606.04797}, year = {2016}, url = {http://arxiv.org/abs/1606.04797}, archivePrefix = {arXiv}, eprint = {1606.04797}, }
| InputDataType | Type of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
| OutputDataType | Type of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
Definition at line 48 of file dice_loss.hpp.
| DiceLoss | ( | const double | smooth = 1 | ) |
Create the DiceLoss object.
| smooth | The Laplace smoothing parameter. |
| void Backward | ( | const InputType && | input, |
| const TargetType && | target, | ||
| OutputType && | output | ||
| ) |
Ordinary feed backward pass of a neural network.
| input | The propagated input activation. |
| target | The target vector. |
| output | The calculated error. |
| double Forward | ( | const InputType && | input, |
| const TargetType && | target | ||
| ) |
Computes the dice loss function.
| input | Input data used for evaluating the specified function. |
| target | The target vector. |
|
inline |
Get the output parameter.
Definition at line 80 of file dice_loss.hpp.
|
inline |
Modify the output parameter.
Definition at line 82 of file dice_loss.hpp.
| void serialize | ( | Archive & | ar, |
| const unsigned | int | ||
| ) |
Serialize the layer.
Referenced by DiceLoss< InputDataType, OutputDataType >::Smooth().
|
inline |
Get the smooth.
Definition at line 85 of file dice_loss.hpp.
|
inline |
Modify the smooth.
Definition at line 87 of file dice_loss.hpp.
References DiceLoss< InputDataType, OutputDataType >::serialize().