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).
Constructors
MeanSquaredErrorLoss4D(MseReduction)
public MeanSquaredErrorLoss4D(MseReduction mseReduction = MseReduction.ElementMean)
Parameters
mseReductionMseReduction
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.