Class MeanSquaredErrorLoss4D
- Namespace
- NeuralNetworks.Losses
- Assembly
- NeuralNetworks.dll
public class MeanSquaredErrorLoss4D : Loss<float[,,,]>
- Inheritance
-
MeanSquaredErrorLoss4D
- Inherited Members
Remarks
Usually used in convolutional neural networks (CNNs) for autoencoding tasks, where the input and output are 4D tensors (e.g., batch size, channels, height, width).
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.