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

679

Last 30 days

5508th

2K

Last 90 days

9.8K

Last year

Trend: +0.3% (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 (2 non-OK)
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

Check History

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

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
new 1.0 Oct 13, 2017