raw_keras: Convert GNN model Slots to raw or keras Objects

raw_kerasR Documentation

Convert GNN model Slots to raw or keras Objects

Description

Keras objects cannot be saved like other R objects. The methods as.raw() and as.keras() can be used to convert the model slots of objects of S3 class "gnn_GNN" to "raw" objects (which can be saved) or "keras.engine.training.Model" objects (which can be trained).

Usage

## S3 method for class 'gnn_GNN'
as.raw(x)
## S3 method for class 'gnn_GNN'
as.keras(x)

Arguments

x

object of S3 class "gnn_GNN".

Value

object of S3 class "gnn_GNN" with slot method converted by the respective method if necessary.

Author(s)

Marius Hofert


gnn documentation built on May 29, 2024, 6:13 a.m.

Related to raw_keras in gnn...