Table of Contents

Interface IGenerativeModel<T>

Namespace
AiDotNet.ContinualLearning
Assembly
AiDotNet.dll

Interface for generative models used with GenerativeReplay.

public interface IGenerativeModel<T>

Type Parameters

T

The numeric type for calculations.

Methods

GenerateSamples(int)

Generates synthetic samples from the learned distribution.

(Tensor<T>? inputs, Tensor<T>? targets) GenerateSamples(int count)

Parameters

count int

Number of samples to generate.

Returns

(Tensor<T> grad1, Tensor<T> grad2)

Tuple of generated inputs and corresponding targets.

Train(Tensor<T>, Tensor<T>)

Trains the generative model on the provided data.

void Train(Tensor<T> inputs, Tensor<T> targets)

Parameters

inputs Tensor<T>

Training inputs.

targets Tensor<T>

Training targets.