Class SoftmaxCrossEntropyLoss
- Namespace
- NeuralNetworks.Losses
- Assembly
- NeuralNetworks.dll
Categorical Cross-Entropy Loss combined with Softmax activation function.
public class SoftmaxCrossEntropyLoss : Loss2D
- Inheritance
-
SoftmaxCrossEntropyLoss
- Inherited Members
Constructors
SoftmaxCrossEntropyLoss(float)
Categorical Cross-Entropy Loss combined with Softmax activation function.
public SoftmaxCrossEntropyLoss(float eps = 1E-07)
Parameters
epsfloat
Methods
CalculateLoss()
protected override float CalculateLoss()
Returns
CalculateLossGradient()
protected override float[,] CalculateLossGradient()
Returns
- float[,]
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.