Xpn {nnR} | R Documentation |
The Xpn function
Description
The Xpn function
Usage
Xpn(n, q, eps)
Arguments
n |
The number of Taylor iterations. Accuracy as well as computation
time increases as |
q |
a real number in |
eps |
a real number in Note: In practice for most desktop uses
|
Value
A neural network that approximates e^x
for real x
when
given appropriate n,q,\varepsilon
and instnatiated with ReLU
activation at pointx
.
References
Definition 2.28 in 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
Xpn(3, 2.25, 0.25) # this may take some time
Xpn(3, 2.2, 0.2) |> inst(ReLU, 1.5) # this may take some time