ANPAlgorithm<T, TInput, TOutput>
Models & Types · AiDotNet.MetaLearning.Algorithms
Implementation of Attentive Neural Process (ANP) (Kim et al., ICLR 2019). Adds cross-attention from targets to context for better predictions on top of NP.
Inheritance: ModelBase<T, TInput, TOutput> → MetaLearnerBase<T, TInput, TOutput> → NeuralProcessBase<T, TInput, TOutput> → ANPAlgorithm<T, TInput, TOutput>
Implements: IGeneratedParameterRegistrar<T>
Constructors
| Constructor | Summary |
|---|---|
ANPAlgorithm(ANPOptions<T, TInput, TOutput> options) |
Properties
| Property | Summary |
|---|---|
MetaLearningAlgorithmType AlgorithmType { get; } |
Methods
| Method | Summary |
|---|---|
IModel<TInput, TOutput, ModelMetadata<T>> Adapt(IMetaLearningTask<T, TInput, TOutput> task) |
|
T MetaTrain(TaskBatch<T, TInput, TOutput> taskBatch) |