Class PhysicsLossGradient<T>
- Namespace
- AiDotNet.PhysicsInformed
- Assembly
- AiDotNet.dll
Holds loss and gradient information for physics-informed objectives.
public sealed class PhysicsLossGradient<T>
Type Parameters
TThe numeric type used for calculations.
- Inheritance
-
PhysicsLossGradient<T>
- Inherited Members
Constructors
PhysicsLossGradient(int, int, INumericOperations<T>)
Initializes a new instance of the PhysicsLossGradient<T> class.
public PhysicsLossGradient(int outputDimension, int inputDimension, INumericOperations<T> numOps)
Parameters
outputDimensionintThe output dimension.
inputDimensionintThe input dimension.
numOpsINumericOperations<T>
Properties
FirstDerivatives
Gradient of loss with respect to first derivatives.
public T[,] FirstDerivatives { get; }
Property Value
- T[,]
Loss
Gets or sets the loss value for this sample.
public T Loss { get; set; }
Property Value
- T
OutputGradients
Gradient of loss with respect to outputs.
public T[] OutputGradients { get; }
Property Value
- T[]
SecondDerivatives
Gradient of loss with respect to second derivatives.
public T[,,] SecondDerivatives { get; }
Property Value
- T[,,]