Trp: Trp

View source: R/Etr.R

TrpR Documentation

Trp

Description

The function that returns the \mathsf{Trp} networks.

Usage

Trp(h)

Arguments

h

the horizontal distance between two mesh points

Value

The \mathsf{Trp} network that gives the area when activated with ReLU or any continuous function and two meshpoint values x_1 and x_2.

References

Definition 2.31. Rafi S., Padgett, J.L., Nakarmi, U. (2024) Towards an Algebraic Framework For Approximating Functions Using Neural Network Polynomials https://arxiv.org/abs/2402.01058

Examples

Trp(0.1)
Trp(0.5) |> inst(ReLU, c(9, 7))
Trp(0.1) |> inst(Sigmoid, c(9, 8))


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

Related to Trp in nnR...