Class NTMWriteHead<T>
- Namespace
- AiDotNet.MetaLearning.Algorithms
- Assembly
- AiDotNet.dll
NTM write head for content-based addressing.
public class NTMWriteHead<T>
Type Parameters
TThe numeric type.
- Inheritance
-
NTMWriteHead<T>
- Inherited Members
Constructors
NTMWriteHead(int, int)
Initializes a new instance of NTMWriteHead.
public NTMWriteHead(int memoryWidth, int memorySize)
Parameters
Methods
Clone()
Clones the write head.
public NTMWriteHead<T> Clone()
Returns
- NTMWriteHead<T>
A new write head with the same configuration.
ComputeWriteWeights(Tensor<T>, NTMMemory<T>)
Computes write weights using cosine similarity.
public Vector<T> ComputeWriteWeights(Tensor<T> key, NTMMemory<T> memory)
Parameters
keyTensor<T>The key tensor.
memoryNTMMemory<T>The memory matrix.
Returns
- Vector<T>
The write weights vector.