Learn R Programming

crumble (version 0.1.2)

sequential_module: Sequential neural network module function factory

Description

Sequential neural network module function factory

Usage

sequential_module(layers = 1, hidden = 20, dropout = 0.1)

Value

A function that returns a sequential neural network module.

Arguments

layers

[numeric(1)]
Number of hidden layers.

hidden

[numeric(1)]
Number of hidden units.

dropout

[numeric(1)]
Dropout rate.

Examples

Run this code
if (torch::torch_is_installed()) sequential_module()

Run the code above in your browser using DataLab