Class LossFunctionExtensions
- Namespace
- AiDotNet.Interfaces
- Assembly
- AiDotNet.dll
public static class LossFunctionExtensions
- Inheritance
-
LossFunctionExtensions
- Inherited Members
Methods
ComputeGradient<T>(ILossFunction<T>, Tensor<T>, Tensor<T>)
public static Tensor<T> ComputeGradient<T>(this ILossFunction<T> lossFunction, Tensor<T> predicted, Tensor<T> actual)
Parameters
lossFunctionILossFunction<T>predictedTensor<T>actualTensor<T>
Returns
- Tensor<T>
Type Parameters
T
ComputeLoss<T>(ILossFunction<T>, Tensor<T>, Tensor<T>)
public static T ComputeLoss<T>(this ILossFunction<T> lossFunction, Tensor<T> predicted, Tensor<T> actual)
Parameters
lossFunctionILossFunction<T>predictedTensor<T>actualTensor<T>
Returns
- T
Type Parameters
T