{
  "_id": "6a4a04749ce196b5e5a91b48",
  "Package": "ANN2",
  "Type": "Package",
  "Title": "Artificial Neural Networks for Anomaly Detection",
  "Version": "2.4.0",
  "Date": "2025-10-09",
  "Authors@R": "person(given = \"Bart\",\nfamily = \"Lammers\",\nrole = c(\"aut\", \"cre\"),\nemail = \"bart.f.lammers@gmail.com\")",
  "Maintainer": "Bart Lammers <bart.f.lammers@gmail.com>",
  "Description": "Training of neural networks for classification and\nregression tasks using mini-batch gradient descent. Special\nfeatures include a function for training autoencoders, which\ncan be used to detect anomalies, and some related plotting\nfunctions. Multiple activation functions are supported,\nincluding tanh, relu, step and ramp. For the use of the step\nand ramp activation functions in detecting anomalies using\nautoencoders, see Hawkins et al. (2002)\n<doi:10.1007/3-540-46145-0_17>. Furthermore, several loss\nfunctions are supported, including robust ones such as Huber\nand pseudo-Huber loss, as well as L1 and L2 regularization. The\npossible options for optimization algorithms are RMSprop, Adam\nand SGD with momentum. The package contains a vectorized C++\nimplementation that facilitates fast training through\nmini-batch learning.",
  "License": "GPL (>= 3) | file LICENSE",
  "URL": "https://github.com/bflammers/ANN2",
  "Encoding": "UTF-8",
  "SystemRequirements": "C++17",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://bflammers.r-universe.dev",
  "Date/Publication": "2025-10-09 19:38:54 UTC",
  "RemoteUrl": "https://github.com/bflammers/ann2",
  "RemoteRef": "HEAD",
  "RemoteSha": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-11 08:12:04 UTC",
    "User": "root"
  },
  "Author": "Bart Lammers [aut, cre]",
  "_user": "bflammers",
  "_type": "src",
  "_file": "ANN2_2.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/8d8a6b6911b350f5b2c0e65704c093f988058e3d3bbd04e2ef2cf4bb8783aa33",
  "_filesize": 392570,
  "_sha256": "8d8a6b6911b350f5b2c0e65704c093f988058e3d3bbd04e2ef2cf4bb8783aa33",
  "_expires": "2026-10-13T07:14:59.000Z",
  "_created": "2026-06-11T08:12:04.000Z",
  "_published": "2026-07-05T07:15:00.754Z",
  "_jobs": [
    {
      "job": 85202147695,
      "time": 261,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7558578448"
    },
    {
      "job": 85202147578,
      "time": 251,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7558574735"
    },
    {
      "job": 85202147764,
      "time": 262,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558578753"
    },
    {
      "job": 85202147744,
      "time": 249,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558574060"
    },
    {
      "job": 85202147763,
      "time": 366,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7558603046"
    },
    {
      "job": 85202147525,
      "time": 550,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7558677050"
    },
    {
      "job": 85202147677,
      "time": 251,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558566537"
    },
    {
      "job": 85202147542,
      "time": 649,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558706426"
    },
    {
      "job": 85202147398,
      "time": 291,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558480851"
    },
    {
      "job": 85202147701,
      "time": 246,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558572897"
    },
    {
      "job": 85202147535,
      "time": 282,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7558586113"
    },
    {
      "job": 85202147739,
      "time": 296,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7558591486"
    },
    {
      "job": 85202147732,
      "time": 290,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558589257"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521",
  "_status": "success",
  "_upstream": "https://github.com/bflammers/ann2",
  "_commit": {
    "id": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
    "author": "Bart Lammers <bart@eykdata.com>",
    "committer": "Bart Lammers <bart@eykdata.com>",
    "message": "Remove left over merge conflict\n",
    "time": 1760038734
  },
  "_maintainer": {
    "name": "Bart Lammers",
    "email": "bart.f.lammers@gmail.com",
    "login": "bflammers",
    "description": "Building Eyk - tracking & analytics for modern e-commerce brands 🔥",
    "uuid": 15668381
  },
  "_distro": "noble",
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "testthat",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "version": ">= 1.4.4",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 4.0.0",
      "role": "Imports"
    },
    {
      "package": "viridisLite",
      "version": ">= 0.4.2",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "bflammers",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-41",
      "n": 10
    }
  ],
  "_tags": [],
  "_topics": [
    "anomaly-detection",
    "artificial-neural-networks",
    "autoencoders",
    "neural-networks",
    "robust-statistics",
    "openblas",
    "cpp",
    "openmp"
  ],
  "_stars": 12,
  "_contributors": [
    {
      "user": "bflammers",
      "count": 254,
      "uuid": 15668381
    },
    {
      "user": "codacy-badger",
      "count": 1,
      "uuid": 23704769
    },
    {
      "user": "teunbrand",
      "count": 1,
      "uuid": 49372158
    }
  ],
  "_userbio": {
    "uuid": 15668381,
    "type": "user",
    "name": "Bart Lammers",
    "description": "Building Eyk - tracking & analytics for modern e-commerce brands 🔥"
  },
  "_downloads": {
    "count": 538,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ANN2"
  },
  "_mentions": 14,
  "_devurl": "https://github.com/bflammers/ann2",
  "_searchresults": 81,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/ANN2.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/bflammers/ann2",
  "_realowner": "bflammers",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0",
      "date": "2017-10-14"
    },
    {
      "version": "1.1",
      "date": "2017-10-23"
    },
    {
      "version": "1.2",
      "date": "2017-11-15"
    },
    {
      "version": "1.3",
      "date": "2017-11-16"
    },
    {
      "version": "1.4",
      "date": "2017-11-24"
    },
    {
      "version": "1.5",
      "date": "2017-11-28"
    },
    {
      "version": "2.0",
      "date": "2018-12-11"
    },
    {
      "version": "2.1",
      "date": "2019-03-04"
    },
    {
      "version": "2.2",
      "date": "2019-03-19"
    },
    {
      "version": "2.3",
      "date": "2019-03-20"
    },
    {
      "version": "2.3.1",
      "date": "2019-03-30"
    },
    {
      "version": "2.3.2",
      "date": "2019-04-13"
    },
    {
      "version": "2.3.3",
      "date": "2020-03-14"
    },
    {
      "version": "2.3.4",
      "date": "2020-12-01"
    },
    {
      "version": "2.4.0",
      "date": "2025-10-09"
    }
  ],
  "_exports": [
    "autoencoder",
    "compression_plot",
    "decode",
    "encode",
    "neuralnetwork",
    "read_ANN",
    "reconstruct",
    "reconstruction_plot",
    "train",
    "write_ANN"
  ],
  "_help": [
    {
      "page": "ANN",
      "title": "Rcpp module exposing C++ class ANN",
      "topics": [
        "ANN",
        "Rcpp_ANN-class"
      ]
    },
    {
      "page": "autoencoder",
      "title": "Train an Autoencoding Neural Network",
      "topics": [
        "autoencoder"
      ]
    },
    {
      "page": "compression_plot",
      "title": "Compression plot",
      "topics": [
        "compression_plot",
        "compression_plot.ANN"
      ]
    },
    {
      "page": "decode",
      "title": "Decoding step",
      "topics": [
        "decode",
        "decode.ANN"
      ]
    },
    {
      "page": "encode",
      "title": "Encoding step",
      "topics": [
        "encode",
        "encode.ANN"
      ]
    },
    {
      "page": "neuralnetwork",
      "title": "Train a Neural Network",
      "topics": [
        "neuralnetwork"
      ]
    },
    {
      "page": "plot.ANN",
      "title": "Plot training and validation loss",
      "topics": [
        "plot.ANN"
      ]
    },
    {
      "page": "predict.ANN",
      "title": "Make predictions for new data",
      "topics": [
        "predict.ANN"
      ]
    },
    {
      "page": "print.ANN",
      "title": "Print ANN",
      "topics": [
        "print.ANN"
      ]
    },
    {
      "page": "read_ANN",
      "title": "Read ANN object from file",
      "topics": [
        "read_ANN"
      ]
    },
    {
      "page": "reconstruct",
      "title": "Reconstruct data using trained ANN object of type autoencoder",
      "topics": [
        "reconstruct"
      ]
    },
    {
      "page": "reconstruction_plot",
      "title": "Reconstruction plot",
      "topics": [
        "reconstruction_plot",
        "reconstruction_plot.ANN"
      ]
    },
    {
      "page": "train",
      "title": "Continue training of a Neural Network",
      "topics": [
        "train"
      ]
    },
    {
      "page": "write_ANN",
      "title": "Write ANN object to file",
      "topics": [
        "write_ANN"
      ]
    }
  ],
  "_readme": "https://github.com/bflammers/ann2/raw/HEAD/README.md",
  "_rundeps": [
    "brio",
    "callr",
    "cli",
    "cpp11",
    "crayon",
    "desc",
    "diffobj",
    "evaluate",
    "farver",
    "fs",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "jsonlite",
    "labeling",
    "lifecycle",
    "magrittr",
    "otel",
    "pkgbuild",
    "pkgload",
    "plyr",
    "praise",
    "processx",
    "ps",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "reshape2",
    "rlang",
    "rprojroot",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "testthat",
    "vctrs",
    "viridisLite",
    "waldo",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_score": 5.987666264926275,
  "_indexed": true,
  "_nocasepkg": "ann2",
  "_universes": [
    "bflammers"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-06-11T08:16:10.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/4417ee9f47a868980388ff4ad0542ea1a2af29555a7ae1a952cd748eb946c833",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-06-11T08:16:05.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/154cd27ac05c1ada03108bc986b419550297500b295398a8cb939f9c1dfbca78",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-06-11T08:16:13.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/4e70d4f448436e02b951bcca5746b18c615c5c13423c7e06ab912edb0ea2504e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-06-11T08:16:07.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/152aecb118cd3b356cb6bccb598bd1562880654b21f0d0513a2205bd20f63d72",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-06-11T08:16:51.000Z",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/cdc1bcb10742da6edfd78f158c0e6a1e357c8e3c23f5f8006664fdd587f60a16",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-06-11T08:18:32.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/79c78a1a4d5284b4395728d0f8b628cd484f8027e56fa765141aa891350ade24",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-06-11T08:16:22.000Z",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/d533c2a4613c6a5a7c2f62aca24e7f6135c2cb5803760be871479b0837313eba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-06-11T08:18:11.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/61cb6596d35b8770604d4b03c82f19c21dd73de2552d9a8077b162bdda6eb108",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.4.0",
      "date": "2026-06-11T08:16:55.000Z",
      "arch": "emscripten",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/578ddc7232e8f5ca6692461a1aae4ec959de1926f06cbaf6cc51c95508213433",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-06-11T08:15:10.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/d0906d0796e97bf24fa5ac91870db624aaec4822bb8c71bc44683e24d2b19904",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-06-11T08:15:13.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/eff102113dfadc5080dd2e2b1f7af698ef46cc5c9c91773a7a982f6f3a985f0a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-06-11T08:15:12.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/3f6cecc2b3ea337ddf1285964b96a54e9e8fb093a2a572037679a58ac724a768",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/27333115521"
    }
  ]
}