Learn R Programming

ruta (version 1.2.0)

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)

Value

A "ruta_network" construct

Arguments

x

Object to be converted into a network

Examples

Run this code
net <- as_network(c(784, 1000, 32))

Run the code above in your browser using DataLab