Table of Contents

Class MANNModel<T, TInput, TOutput>

Namespace
AiDotNet.MetaLearning.Algorithms
Assembly
AiDotNet.dll

MANN model for inference with external memory.

public class MANNModel<T, TInput, TOutput> : IModel<TInput, TOutput, ModelMetadata<T>>

Type Parameters

T

The numeric type.

TInput

The input data type.

TOutput

The output data type.

Inheritance
MANNModel<T, TInput, TOutput>
Implements
IModel<TInput, TOutput, ModelMetadata<T>>
Inherited Members

Constructors

MANNModel(IFullModel<T, TInput, TOutput>, ExternalMemory<T>, MANNOptions<T, TInput, TOutput>, INumericOperations<T>)

Initializes a new instance of the MANNModel.

public MANNModel(IFullModel<T, TInput, TOutput> controller, ExternalMemory<T> memory, MANNOptions<T, TInput, TOutput> options, INumericOperations<T> numOps)

Parameters

controller IFullModel<T, TInput, TOutput>
memory ExternalMemory<T>
options MANNOptions<T, TInput, TOutput>
numOps INumericOperations<T>

Properties

Metadata

Gets the model metadata.

public ModelMetadata<T> Metadata { get; }

Property Value

ModelMetadata<T>

Methods

GetModelMetadata()

Gets model metadata.

public ModelMetadata<T> GetModelMetadata()

Returns

ModelMetadata<T>

GetParameters()

Gets controller parameters.

public Vector<T> GetParameters()

Returns

Vector<T>

Predict(TInput)

Makes predictions using memory-augmented classification.

public TOutput Predict(TInput input)

Parameters

input TInput

Returns

TOutput

Train(TInput, TOutput)

Training is not supported for adapted models.

public void Train(TInput inputs, TOutput targets)

Parameters

inputs TInput
targets TOutput

UpdateParameters(Vector<T>)

Parameter updates are not supported for adapted models.

public void UpdateParameters(Vector<T> parameters)

Parameters

parameters Vector<T>