Tay {nnR} | R Documentation |
The Tay function
Description
The Tay function
Usage
Tay(f, n, q, eps)
Arguments
f |
the function to be Taylor approximated, for now "exp", "sin" and "cos". NOTE use the quotation marks when using this argument. |
n |
The number of Taylor iterations. Accuracy as well as computation
time increases as |
q |
a real number in |
eps |
a real number in |
Value
a neural network that approximates the function f. For now only
sin
, cos
, and e^x
are available.
Examples
Tay("sin", 2, 2.3, 0.3) |> inst(ReLU, 1.5) # May take some time, please only click once
Tay("cos", 2, 2.3, 0.3) |> inst(ReLU, 1) # May take some time, please only click once
Tay("exp", 4, 2.3, 0.3) |> inst(ReLU, 1.5) # May take some time, please only click once
[Package nnR version 0.1.0 Index]