Table of Contents

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

lossFunction ILossFunction<T>
predicted Tensor<T>
actual Tensor<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

lossFunction ILossFunction<T>
predicted Tensor<T>
actual Tensor<T>

Returns

T

Type Parameters

T