INTMController<T>
Interfaces · AiDotNet.MetaLearning.Algorithms
Interface for NTM controller.
Known implementations: LSTMNTMController<T, TInput, TOutput>, MLPNTMController<T, TInput, TOutput>
Methods
| Method | Summary |
|---|---|
IReadOnlyList<Tensor<T>> GetParameterTensors() |
Gets the controller’s trainable tensors, in GetParameters order. |
List<NTMAddressingParameters<T>> GenerateReadAddressing(Tensor<T> output) |
Generates the full addressing parameters (key, key strength, gate, shift, sharpening) of every read head (Graves et al. |
List<Tensor<T>> GenerateReadKeys(Tensor<T> output) |
Generates read keys for all read heads. |
NTMAddressingParameters<T> GenerateWriteAddressing(Tensor<T> output) |
Generates the full addressing parameters of the write head (Graves et al. |
Tensor<T> Forward(Tensor<T> input, List<Tensor<T>> readContents) |
Forward pass through the controller. |
Tensor<T> GenerateAddVector(Tensor<T> output) |
Generates add vector for writing. |
Tensor<T> GenerateEraseVector(Tensor<T> output) |
Generates erase vector for writing. |
Tensor<T> GenerateOutput(Tensor<T> output, List<Tensor<T>> readContents) |
Generates final output. |
Tensor<T> GenerateWriteKey(Tensor<T> output) |
Generates write key. |
Vector<T> GetParameters() |
Gets controller parameters. |
void Reset() |
Resets controller state. |
void SetParameters(Vector<T> parameters) |
Sets controller parameters (updates internal weights). |