ffGNN | R Documentation |
Feedforward method for objects of S3
class "gnn_GNN"
.
## S3 method for class 'gnn_GNN'
ffGNN(x, data)
x |
object of |
data |
|
The output matrix
of x
when fed with data
.
Marius Hofert
if(TensorFlow_available()) { # rather restrictive (due to R-Forge, 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.