hid: hid

View source: R/aux_fun.R

hidR Documentation

hid

Description

The function that returns the number of hidden layers of a neural network. Denoted \mathsf{H}

Usage

hid(nu)

Arguments

nu

a neural network of the type generated by create_nn()

By definition \mathsf{H}(\nu) = \mathsf{D}(\nu) - 1

Value

Integer representing the number of hidden layers.

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

create_nn(c(4, 5, 6, 2)) |> hid()


nnR documentation built on May 29, 2024, 2:02 a.m.

Related to hid in nnR...