Description Usage Arguments Value Author(s) Examples
Feedforward method for objects of S3
class "gnn_GNN"
.
1 2 
x 
object of 
data 

The output matrix
of x
when fed with data
.
Marius Hofert
1 2 3 4 5 6 7 8 9 10 11 12 13 14  if(TensorFlow_available()) { # rather restrictive (due to RForge, winbuilder)
library(gnn) # for being standalone
## Define dummy model
d < 2 # bivariate case
GMMN < FNN(c(d, 300, d)) # Feedforward NN with MMD loss (a GMMN; random weights)
## Feedforward
n < 3
set.seed(271)
X < ffGNN(GMMN, data = matrix(runif(n * d), ncol = d))
stopifnot(dim(X) == c(n, d))
}

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.