Sqr {nnR}R Documentation

Sqr

Description

A function that returns the Sqr\mathsf{Sqr} neural networks.

Usage

Sqr(q, eps)

Arguments

q

a real number in (2,)(2,\infty). Accuracy as well as computation time increases as qq gets closer to 22 increases

eps

a real number in (0,)(0,\infty). ccuracy as well as computation time increases as ε\varepsilon gets closer to 00 increases

Value

A neural network that approximates the square of a real number.when provided appropriate q,εq,\varepsilon and upon instantiation with ReLU, and a real number xx

References

Proposition 3.4. Grohs, P., Hornung, F., Jentzen, A. et al. Space-time error estimates for deep neural network approximations for differential equations. (2019). https://arxiv.org/abs/1908.03833

#' @references Definition 2.24. 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

Sqr(2.5, 0.1)
Sqr(2.5, 0.1) |> inst(ReLU, 4)


[Package nnR version 0.1.0 Index]