Skip to content

ANN2

Artificial Neural Networks for Anomaly Detection

v2.4.0 · Oct 9, 2025 · GPL (>= 3) | file LICENSE

Description

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) <doi:10.1007/3-540-46145-0_17>. Furthermore, several loss functions are supported, 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.

Downloads

689

Last 30 days

5156th

1.3K

Last 90 days

1.3K

Last year

Trend: +9.5% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
NOTE r-oldrel-macos-arm64

installed package size

  installed size is 29.6Mb
  sub-directories of 1Mb or more:
    cereal   1.4Mb
    libs    28.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is 29.6Mb
  sub-directories of 1Mb or more:
    cereal   1.4Mb
    libs    28.1Mb
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
NOTE r-oldrel-macos-arm64

installed package size

  installed size is 29.6Mb
  sub-directories of 1Mb or more:
    cereal   1.4Mb
    libs    28.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is 29.6Mb
  sub-directories of 1Mb or more:
    cereal   1.4Mb
    libs    28.1Mb

Dependency Network

Dependencies Reverse dependencies Rcpp reshape2 ggplot2 viridisLite rlang ANN2

Version History

new 2.4.0 Mar 9, 2026