Learn R Programming

ruta (version 1.0.2)

as_network: Coercion to ruta_network

Description

Generic function to coerce objects into networks.

Usage

as_network(x)

# S3 method for ruta_layer as_network(x)

# S3 method for ruta_network as_network(x)

# S3 method for numeric as_network(x)

# S3 method for integer as_network(x)

Arguments

x

Object to be converted into a network

Value

A "ruta_network" construct

Examples

Run this code
# NOT RUN {
net <- as_network(c(784, 1000, 32))
# }

Run the code above in your browser using DataLab