Pwr {nnR}R Documentation

Pwr

Description

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

Usage

Pwr(q, eps, exponent)

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

exponent

The power to which we will raise. Computation time increases as exponent increases

Value

A neural network that approximates raising a number to exponent, when given appropriate q,εq,\varepsilon and exponent when instantiated under ReLU activation at xx.

Examples

Pwr(2.1, 0.1, 2) |> inst(ReLU, 3) # This may take some time, please only click once.


[Package nnR version 0.1.0 Index]