Table of Contents

Class GradientModel<T>

Namespace
AiDotNet.Models
Assembly
AiDotNet.dll

Default implementation of a gradient model.

public class GradientModel<T> : IGradientModel<T>

Type Parameters

T

The numeric type used for calculations.

Inheritance
GradientModel<T>
Implements
Inherited Members

Constructors

GradientModel(Vector<T>)

Initializes a new instance of the GradientModel class.

public GradientModel(Vector<T> parameters)

Parameters

parameters Vector<T>

The gradient vector.

Properties

Parameters

Gets the gradient vector.

public Vector<T> Parameters { get; }

Property Value

Vector<T>

Methods

Evaluate(Vector<T>)

Evaluates the gradient at a specific point.

public T Evaluate(Vector<T> input)

Parameters

input Vector<T>

The input vector.

Returns

T

The gradient value at the specified point.