DataPredict

API Reference - Models - GenerativeAdversarialNetwork (GAN)

GenerativeAdversarialNetwork uses two neural networks to generate new contents from noise.

Notes

Constructors

new()

Create new model object. If any of the arguments are nil, default argument values for that argument will be used.

GenerativeAdversarialNetwork.new(maximumNumberOfIterations: number): ModelObject

Parameters:

Returns:

Functions

setParameters()

Set model’s parameters. When any of the arguments are nil, previous argument values for that argument will be used.

GenerativeAdversarialNetwork:setParameters(maximumNumberOfIterations: number)

Parameters:

setGeneratorModel()

Sets the Generator into the model.

GenerativeAdversarialNetwork:setGeneratorModel(GeneratorModel: Model)

Parameters:

setDiscriminatorModel()

Sets the Discriminator into the model.

GenerativeAdversarialNetwork:setDiscriminatorModel(DiscriminatorModel: Model)

Parameters:

getGeneratorModel()

Gets the Generator from the model.

GenerativeAdversarialNetwork:getGeneratorModel(): Model

Returns:

getDiscriminatorModel()

Gets the Discriminator from the model.

GenerativeAdversarialNetwork:getDiscriminatorModel(): Model

Returns:

train()

Trains the model.

GenerativeAdversarialNetwork:train(realFeatureMatrix: matrix, noiseFeatureMatrix: matrix)

Parameters:

evaluate()

Generates the output from Discriminator.

GenerativeAdversarialNetwork:evaluate(featureMatrix: matrix): matrix

Parameters:

Returns:

generate()

Generates the output from Generator.

GenerativeAdversarialNetwork:generate(noiseFeatureMatrix: matrix): matrix

Parameters:

Returns:

References