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
TThe numeric type.
TInputThe input data type.
TOutputThe 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
controllerIFullModel<T, TInput, TOutput>memoryExternalMemory<T>optionsMANNOptions<T, TInput, TOutput>numOpsINumericOperations<T>
Properties
Metadata
Gets the model metadata.
public ModelMetadata<T> Metadata { get; }
Property Value
Methods
GetModelMetadata()
Gets model metadata.
public ModelMetadata<T> GetModelMetadata()
Returns
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
inputTInput
Returns
- TOutput
Train(TInput, TOutput)
Training is not supported for adapted models.
public void Train(TInput inputs, TOutput targets)
Parameters
inputsTInputtargetsTOutput
UpdateParameters(Vector<T>)
Parameter updates are not supported for adapted models.
public void UpdateParameters(Vector<T> parameters)
Parameters
parametersVector<T>