| GNN_basics | R Documentation |
Basic functions and methods for objects of S3 class "gnn_GNN".
## S3 method for class 'gnn_GNN'
print(x, ...)
## S3 method for class 'gnn_GNN'
str(object, ...)
## S3 method for class 'gnn_GNN'
summary(object, ...)
## S3 method for class 'gnn_GNN'
dim(x)
## S3 method for class 'gnn_GNN'
is.GNN(x)
## S3 method for class 'list'
is.GNN(x)
x |
|
object |
object of |
... |
currently not used. |
return value of the print()
method for objects of class "list".
nothing, as str() returns
nothing when applied to objects of class "list".
return value of the summary()
method for objects of class "list".
slot dim of x, so a vector of
dimensions of input, hidden and output layers.
logical of length equal to the
length of x indicating, for each component,
whether it is an object of class "gnn_GNN".
Marius Hofert
if(TensorFlow_available()) { # rather restrictive (due to R-Forge, winbuilder)
library(gnn) # for being standalone
d <- 2
dim <- c(d, 300, d) # dimensions of the input, hidden and output layers
GMMN <- FNN(dim) # define the GMMN model
stopifnot(is.GNN(GMMN)) # check for being a GNN
GMMN # print() method
str(GMMN) # str() method
summary(GMMN) # summary() method
stopifnot(dim(GMMN) == c(d, 300, d)) # dim() method
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.