Interface INTMController<T>
- Namespace
- AiDotNet.MetaLearning.Algorithms
- Assembly
- AiDotNet.dll
Interface for NTM controller.
public interface INTMController<T>
Type Parameters
TThe numeric type.
Methods
Forward(Tensor<T>, List<Tensor<T>>)
Forward pass through the controller.
Tensor<T> Forward(Tensor<T> input, List<Tensor<T>> readContents)
Parameters
inputTensor<T>The input tensor.
readContentsList<Tensor<T>>The previous read contents.
Returns
- Tensor<T>
The controller output.
GenerateAddVector(Tensor<T>)
Generates add vector for writing.
Tensor<T> GenerateAddVector(Tensor<T> output)
Parameters
outputTensor<T>The controller output.
Returns
- Tensor<T>
The add vector.
GenerateEraseVector(Tensor<T>)
Generates erase vector for writing.
Tensor<T> GenerateEraseVector(Tensor<T> output)
Parameters
outputTensor<T>The controller output.
Returns
- Tensor<T>
The erase vector.
GenerateOutput(Tensor<T>, List<Tensor<T>>)
Generates final output.
Tensor<T> GenerateOutput(Tensor<T> output, List<Tensor<T>> readContents)
Parameters
outputTensor<T>The controller output.
readContentsList<Tensor<T>>The current read contents.
Returns
- Tensor<T>
The final output.
GenerateReadKeys(Tensor<T>)
Generates read keys for all read heads.
List<Tensor<T>> GenerateReadKeys(Tensor<T> output)
Parameters
outputTensor<T>The controller output.
Returns
- List<Tensor<T>>
List of read keys.
GenerateWriteKey(Tensor<T>)
Generates write key.
Tensor<T> GenerateWriteKey(Tensor<T> output)
Parameters
outputTensor<T>The controller output.
Returns
- Tensor<T>
The write key.
GetParameters()
Gets controller parameters.
Vector<T> GetParameters()
Returns
- Vector<T>
The parameter vector.
Reset()
Resets controller state.
void Reset()
SetParameters(Vector<T>)
Sets controller parameters (updates internal weights).
void SetParameters(Vector<T> parameters)
Parameters
parametersVector<T>The parameter vector to set.