{
  "_id": "6af09d44f4a180a2e271de1d",
  "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-11-08 08:58:58 UTC",
    "User": "root"
  },
  "Author": "Bart Lammers [aut, cre]",
  "_user": "bflammers",
  "_type": "src",
  "_file": "ANN2_2.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/f1e1847e88efee3ebbfcec4e283a6b364f7f67078253fff34f62283b2e9d6838",
  "_filesize": 388065,
  "_sha256": "f1e1847e88efee3ebbfcec4e283a6b364f7f67078253fff34f62283b2e9d6838",
  "_expires": "2027-02-16T09:10:57.000Z",
  "_created": "2026-11-08T08:58:58.000Z",
  "_published": "2026-11-20T01:03:24.289Z",
  "_upstream": "https://github.com/bflammers/ann2",
  "_status": "success",
  "_maintainer": {
    "name": "Bart Lammers",
    "email": "bart.f.lammers@gmail.com",
    "login": "bflammers",
    "description": "Building Eyk - tracking & analytics for modern e-commerce brands 🔥",
    "uuid": 15668381
  },
  "_jobs": [
    {
      "job": 128772961197,
      "time": 211,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13611637145"
    },
    {
      "job": 128772960981,
      "time": 235,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13611403575"
    },
    {
      "job": 128772961115,
      "time": 212,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13611387308"
    },
    {
      "job": 128772960936,
      "time": 248,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13611781362"
    },
    {
      "job": 128772959804,
      "time": 246,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13624381913"
    },
    {
      "job": 128772959731,
      "time": 506,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13623419310"
    },
    {
      "job": 128772959541,
      "time": 270,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13624416067"
    },
    {
      "job": 128772959734,
      "time": 488,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13623358188"
    },
    {
      "job": 128772960977,
      "time": 418,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13610957811"
    },
    {
      "job": 128772960694,
      "time": 215,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13611223924"
    },
    {
      "job": 128772959665,
      "time": 385,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13623066258"
    },
    {
      "job": 128772961134,
      "time": 306,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13610994549"
    },
    {
      "job": 128772960762,
      "time": 345,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13611348849"
    },
    {
      "job": 128772961205,
      "time": 504,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13611602907"
    },
    {
      "job": 128772959732,
      "time": 294,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13623101705"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007",
  "_commit": {
    "id": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
    "author": "Bart Lammers <bart@eykdata.com>",
    "committer": "Bart Lammers <bart@eykdata.com>",
    "message": "Remove left over merge conflict\n",
    "time": 1760038734
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": [],
  "_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",
    "followers": 23,
    "description": "Building Eyk - tracking & analytics for modern e-commerce brands 🔥"
  },
  "_downloads": {
    "count": 725,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ANN2"
  },
  "_mentions": 14,
  "_devurl": "https://github.com/bflammers/ann2",
  "_searchresults": 81,
  "_abi": {
    "exports": [],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "63d26947ba7e1377"
      },
      {
        "key": "Rcpp::char_get_string_elt()",
        "hash": "b8ef75689d832a84"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "54e69ad2e6668c83"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "b0cfd6754c5ebc4e"
      },
      {
        "key": "Rcpp::getCurrentScope()",
        "hash": "ecf3f1d66612bd10"
      },
      {
        "key": "Rcpp::get_Rcpp_namespace()",
        "hash": "c684a9bbe15cdc52"
      },
      {
        "key": "Rcpp::rcpp_get_stack_trace()",
        "hash": "c684a9bbe15cdc52"
      },
      {
        "key": "Rcpp::rcpp_set_stack_trace()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::setCurrentScope()",
        "hash": "f83997fd0e7a6719"
      }
    ]
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/ANN2.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "LICENSE"
  ],
  "_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"
      ]
    }
  ],
  "_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.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_score": 5.288696260590256,
  "_indexed": true,
  "_nocasepkg": "ann2",
  "_universes": [
    "bflammers"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-11-08T09:03:33.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/212afc0d07bcaee8a940798cb5aac438b52815ed5d1a0ee66823754ffd163f3c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-11-08T09:03:42.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/fe79c1754bf2cb4dcd9e14f13d53b2c3200dcbe0a0f027194c328b27092f33bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-11-08T09:03:37.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/acffe467dd81650192899fcc9db68308f9a9d2952629c737728216ad730180b7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-11-08T09:03:49.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/491be0a0b9970d3a1ac76030ddca9a909d669a7284c7bd6b3518a2a81d1e724b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-11-08T16:00:02.000Z",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/c18084f91650823f72507d8110d63872c9124b88f1c2fd2c0cff11e47e070994",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-11-08T15:43:30.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/91042954e62df8ee226291444da2b6a67a2fd7a0f604aad4cfb9898f3fe2ba56",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-11-08T15:55:32.000Z",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/73edda8062529e8975dc62739999e683636b8a3e0a580c576671f92fc2b4563f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-11-08T15:46:58.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/08e503549685fa824f8cfcc36d0ef56157efe5660c9d7caa54bda6da97f9095f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.4.0",
      "date": "2026-11-08T09:04:02.000Z",
      "arch": "emscripten",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/e8b8fa9f70a4dd0be3265e528bf32402bb0d6b00b6d03c1214674f74016ed01b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-11-08T15:22:36.000Z",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/98c7d496308c8743cc06c55896c06821ba2ae1c747a4bc5fed246c02cf609b82",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-11-08T09:03:31.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/3d386bce40e6af05ac465be97f9425ca9b5c0977405369eff651ec76641d7863",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-11-08T09:03:32.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/9eb9d64b88c213373e5d17b082ed5d4e217996f17146936b5ece2a822553b543",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-11-08T09:06:47.000Z",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/4bf1702d474ccc1e6157e2de48f8759a01a54dac4728833039ad3afadb7730a5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-11-08T15:20:37.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "https://r2.ropensci.org/bf6048c0c14dd723f3761bea2507e308194ccbc7b6f0d623b5ba15c09e38664b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/42464934007"
    }
  ]
}