Generic function to coerce objects into networks.

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

net <- as_network(c(784, 1000, 32))