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

CRAN

625

Last 30 days

5197th

1.8K

Last 90 days

10.1K

Last year

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

r2u CRAN

45

Last 30 days

127

Last 90 days

459

Last year

Trend: -13.5% (30d vs prior 30d)

autoCRAN

13

Last 7 days

91

Last 30 days

30

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 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-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 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 OK

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 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
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/ANN2.Rcheck/00install.out' for details.
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
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 12, 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
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 11, 2026
ERROR r-devel-linux-x86_64-fedora-gcc

whether package can be installed

Installation failed.
See ‘/data/gannet/ripley/R/packages/tests-devel/ANN2.Rcheck/00install.out’ for details.
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
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 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

16 tracked
new 2.4.0 Mar 10, 2026
updated 2.4.0 ← 2.3.4 diff Oct 9, 2025
updated 2.3.4 ← 2.3.3 diff Nov 30, 2020
updated 2.3.3 ← 2.3.2 diff Mar 14, 2020
updated 2.3.2 ← 2.3.1 diff Apr 13, 2019
updated 2.3.1 ← 2.3 diff Mar 29, 2019
updated 2.3 ← 2.2 diff Mar 19, 2019
updated 2.2 ← 2.1 diff Mar 18, 2019
updated 2.1 ← 2.0 diff Feb 27, 2019
updated 2.0 ← 1.5 diff Dec 10, 2018
updated 1.5 ← 1.4 diff Nov 27, 2017
updated 1.4 ← 1.3 diff Nov 23, 2017
updated 1.3 ← 1.2 diff Nov 15, 2017
updated 1.2 ← 1.1 diff Nov 14, 2017
updated 1.1 ← 1.0 diff Oct 22, 2017