Description Usage Arguments Value Author(s) Examples
Basic functions and methods for objects of S3
class "gnn_GNN"
.
1 2 3 4 5 6 7 8 9 10 11 12 |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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.