Artificial Neural Networks for Anomaly Detection
Overview
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.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 3 earlier changesHide 3 earlier changes
- NOTE12 OK, 2 NOTE2026-03-13
- ERROR11 OK, 2 NOTE, 1 ERROR2026-03-12
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 21 (7 internal)
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 30%
- Documented parameters
- 100%
- Return-value docs
- 70%
- Help pages citing references
- 10%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 12
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/bflammers/ann2 on 2026-10-18.
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.4.0Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 2.3.42020-12-01 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 2.3.32020-03-15 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 2.3.22019-04-14 · diff ↗
- 2.3.12019-03-30 · diff ↗
- 2.32019-03-20 · diff ↗
- 2.22019-03-19 · diff ↗
- 2.12019-02-28 · diff ↗
Show 9 earlier eventsHide 9 earlier events
- 2.02018-12-11 · diff ↗ ·
removed 3 exports
example_NN, plotStepFunction, replicatoradded 5 exports
compression_plot, read_ANN, reconstruction_plot, train, write_ANN - RR 3.5.0 released · 2018-04-23
- 1.52017-11-28 · diff ↗
- 1.4
- 1.32017-11-16 · diff ↗
- 1.22017-11-15 · diff ↗
- 1.12017-10-23 · diff ↗
- 1.02017-10-14
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-10-14
- Total releases
- 15 / 9 yrs
- License
- GPL (>= 3) | file LICENSE OSI
- Download size
- 274 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ANN2")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.