Learn R Programming

ANN2

Artificial Neural Networks package for R

Training of neural networks for classification and regression tasks using mini-batch gradient descent. Special features include a function for training autoencoders, which can be used to detect anomalies, and some related plotting functions. Multiple activation functions are supported, including tanh, relu, step and ramp. For the use of the step and ramp activation functions in detecting anomalies using autoencoders, see Hawkins et al. (2002). Furthermore, several loss functions are supporterd, including robust ones such as Huber and pseudo-Huber loss, as well as L1 and L2 regularization. The possible options for optimization algorithms are RMSprop, Adam and SGD with momentum. The package contains a vectorized C++ implementation that facilitates fast training through mini-batch learning.


Copy Link

Version

Install

install.packages('ANN2')

Monthly Downloads

580

Version

2.3.4

License

GPL (>= 3) | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Bart Lammers

Last Published

December 1st, 2020

Functions in ANN2 (2.3.4)

encode

Encoding step
setLossParams

Check user input related to loss function
train

Continue training of a Neural Network
setTrainParams

Check user input related to training
write_ANN

Write ANN object to file
reconstruct

Reconstruct data using trained ANN object of type autoencoder
reconstruction_plot

Reconstruction plot
autoencoder

Train an Autoencoding Neural Network
setMeta

Sets list with meta info, to be used in other checks
setNetworkParams

Check user input related to network structure
setActivParams

Check user input related to activation functions
setData

Check the input data
setOptimParams

Check user input related to optimizer
compression_plot

Compression plot
neuralnetwork

Train a Neural Network
predict.ANN

Make predictions for new data
decode

Decoding step
print.ANN

Print ANN
ANN

Rcpp module exposing C++ class ANN
plot.ANN

Plot training and validation loss
read_ANN

Read ANN object from file