Learn R Programming

nnR (version 0.1.0)

Trp: Trp

Description

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

Usage

Trp(h)

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\).

Arguments

h

the horizontal distance between two mesh points

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

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

Run the code above in your browser using DataLab