Loss
Loss functions
NNJulia.Loss.AbstractLoss — TypeAbstractLossEvery loss struct is a subtype of AbstractLoss
NNJulia.Loss.MSE — TypeMSERepresents the Mean Squared Error : L(y,y^i)=∑(y-y^i)^2
NNJulia.Loss.BinaryCrossentropy — TypeBinaryCrossentropyRepresents the Binary crossentropy error function
NNJulia.Loss.CategoricalCrossentropy — TypeCategoricalCrossentropyRepresents the Categorical crossentropy error function
NNJulia.Loss.compute_loss — Functioncompute_loss(lossF::MSE, predicted::Tensor, target::Union{Tensor,AbstractArray,Float64,Int64})
compute_loss(lossF::BinaryCrossentropy, predicted::Tensor, target::Union{Tensor,AbstractArray,Float64,Int64})
compute_loss(lossF::CategoricalCrossentropy, predicted::Tensor, target::Union{Tensor,AbstractArray,Float64,Int64})Compute the loss according to the lossF given.