Learn R Programming

nnR (version 0.1.0)

Neural Networks Made Algebraic

Description

Do algebraic operations on neural networks. We seek here to implement in R, operations on neural networks and their resulting approximations. Our operations derive their descriptions mainly from Rafi S., Padgett, J.L., and Nakarmi, U. (2024), "Towards an Algebraic Framework For Approximating Functions Using Neural Network Polynomials", , Grohs P., Hornung, F., Jentzen, A. et al. (2023), "Space-time error estimates for deep neural network approximations for differential equations", , Jentzen A., Kuckuck B., von Wurstemberger, P. (2023), "Mathematical Introduction to Deep Learning Methods, Implementations, and Theory" . Our implementation is meant mainly as a pedagogical tool, and proof of concept. Faster implementations with deeper vectorizations may be made in future versions.

Copy Link

Version

Install

install.packages('nnR')

Monthly Downloads

91

Version

0.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Shakil Rafi

Last Published

February 14th, 2024

Functions in nnR (0.1.0)

Pwr

Pwr
ck

The ck function
inn

inn
nn_sum

nn_sum
inst

inst
srm

srm
stk

stk
out

out
slm

slm
param

param
create_nn

create_nn
Xpn

The Xpn function
view_nn

view_nn
Tun

Tun: The function that returns tunneling neural networks
Sigmoid

: Sigmoid
Sqr

Sqr
create_block_diagonal

Function for creating a block diagonal given two matrices.
comp

comp
Sum

Sum
is_nn

is_nn
Tanh

Tanh
Trp

Trp
Tay

The Tay function
lay

lay
hid

hid
i

i
dep

dep
generate_random_matrix

Function to generate a random matrix with specified dimensions.
Aff

Aff
Etr

Etr
Id

: Id
Csn

Csn
A_k

A_k: The function that returns the matrix A_k
B

This is an intermediate variable, see reference.
Cpy

Cpy
C_k

C_k: The function that returns the C_k matrix
Phi

The Phi function
MC

The MC neural network
Prd

Prd
A

This is an intermediate variable. See the reference
Sne

Sne
ReLU

: ReLU
Mxm

Mxm
Phi_k

The Phi_k function
Nrm

Nrm