Functions and methods for training generative neural networks.
# S3 method for gnn_GNN
fitGNN(x, data, batch.size = nrow(data), n.epoch = 100,
    prior = NULL, max.n.prior = 5000, verbose = 2, ...)
# S3 method for gnn_GNN
fitGNNonce(x, data, batch.size = nrow(data), n.epoch = 100,
    prior = NULL, verbose = 2, file = NULL, name = NULL, ...)
# S3 method for gnn_GNN
is.trained(x)
# S3 method for list
is.trained(x)
object of class
	"gnn_GNN" to be trained.
object of class
	"gnn_GNN" to be trained or a list of such.
\((n, d)\)-matrix containing the \(n\) \(d\)-dimensional observations of the training data.
number of samples used per stochastic gradient step.
number of epochs (one epoch equals one pass through the complete training dataset while updating the GNN's parameters through stochastic gradient steps).
\((n, d)\)-matrix of prior samples; see also
    rPrior(). If prior = NULL a sample of
    independent N(0,1) random variates is generated.
maximum number of prior samples stored in x
    after training.
integer verbose level. Choices are:
silent (no output).
progress bar (via txtProgressBar()).
output after each block of epochs (block size is
	ceiling(n.epoch/10) if n.epoch <= 100 and
	ceiling(sqrt(n.epoch)) if n.epoch > 100).
output after each expoch.
NULL or a character string
    specifying the file in which the trained GNN(s) is (are)
    saved. If file is provided and the specified file exists,
    it is loaded and returned via load_gnn().
character string giving the name under
    which the fitted x is saved (if NULL the fitted
    x is saved under the name "x").
additional arguments passed to the underlying
    fit() (which is keras:::fit.keras.engine.training.Model()).
Marius Hofert
FNN(), save_gnn(),
  load_gnn().