Learn R Programming

nnR (version 0.1.0)

inn: inn

Description

The function that returns the input layer size of a neural network. Denoted \(\mathsf{I}\)

Usage

inn(nu)

Value

An integer representing the input width of the neural network.

Arguments

nu

A neural network of the type generated by create_nn().

References

Definition 1.3.1. Jentzen, A., Kuckuck, B., and von Wurstemberger, P. (2023). Mathematical introduction to deep learning: Methods, implementations, and theory. https://arxiv.org/abs/2310.20360.

Examples

Run this code
create_nn(c(4, 5, 6, 2)) |> inn()

Run the code above in your browser using DataLab