{
  "_id": "6a103333acfb0bcc41c982a0",
  "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-05-12 08:20:06 UTC",
    "User": "root"
  },
  "Author": "Bart Lammers [aut, cre]",
  "MD5sum": "1c871617b087f03da8d8d86effe6505a",
  "_user": "bflammers",
  "_type": "src",
  "_file": "ANN2_2.4.0.tar.gz",
  "_fileid": "9656d7eb209c63976754a8563beeacb1161bb5fb17a2d4e55ac045eb13993f95",
  "_filesize": 392568,
  "_sha256": "9656d7eb209c63976754a8563beeacb1161bb5fb17a2d4e55ac045eb13993f95",
  "_created": "2026-05-12T08:20:06.000Z",
  "_published": "2026-05-22T10:42:59.397Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77363628389,
      "time": 280,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6939231930"
    },
    {
      "job": 77363627980,
      "time": 251,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6939222233"
    },
    {
      "job": 77363628458,
      "time": 259,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939225148"
    },
    {
      "job": 77363628262,
      "time": 247,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939223053"
    },
    {
      "job": 77363628366,
      "time": 271,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6939220427"
    },
    {
      "job": 77363628223,
      "time": 613,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6939313344"
    },
    {
      "job": 77363628079,
      "time": 274,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939218693"
    },
    {
      "job": 77363628155,
      "time": 762,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939375654"
    },
    {
      "job": 77363627951,
      "time": 272,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939140309"
    },
    {
      "job": 77363627668,
      "time": 199,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7158599863"
    },
    {
      "job": 77363628092,
      "time": 314,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6939242795"
    },
    {
      "job": 77363628584,
      "time": 326,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6939246136"
    },
    {
      "job": 77363628414,
      "time": 290,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939235125"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 15668381
  },
  "_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": 656,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ANN2"
  },
  "_mentions": 14,
  "_devurl": "https://github.com/bflammers/ann2",
  "_searchresults": 71,
  "_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",
    "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.930439594766701,
  "_indexed": true,
  "_nocasepkg": "ann2",
  "_universes": [
    "bflammers"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-05-12T08:24:23.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "8cbc2791621a7362b3660b4003f4c9c27d37bc0150b0fb44f4e8445529534a1e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-05-12T08:24:07.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "6ff59bd4a938fd9822c58b66c7ef507fe10acc2f770dd29bce961c8349800b30",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-05-12T08:24:05.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "7fe6256d7ef4cf92d5b8213fd56e4204c30e7417f2cfe6d458efbbbbe6d28f11",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.4.0",
      "date": "2026-05-12T08:24:07.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "ca62170d82384643cacb8b75c6835a1b9637b3f8e8bada3c1a0b52bf2f47ac3e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-05-12T08:24:26.000Z",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "e0301f73f08225a2e3fe9e36620ebd6e011efbae1034ac541470dd02c039dcf9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-05-12T08:26:03.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "025b79e449c84b6236c06cb4874ee5bf93d6e91f678b9c4ba78fe4d5ff0e8418",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-05-12T08:24:14.000Z",
      "arch": "aarch64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "b3f6cbd28e0b8988b9f7190ac3d1114c5f427ebe1854f0bbc6c3bdcb9d23e439",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.4.0",
      "date": "2026-05-12T08:26:00.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "fc77d7653c914698dd38071a636263ec55e94f6302422112f8053a7fe97cb201",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-05-12T08:23:25.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "2e91a826c0fbfe63af5371a031e9205cbfdca08b7832b68decaddf3d36c0b7e1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-05-12T08:23:12.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "578aee8a3425dfc197cac4e602c7a2db715187d00bb0f6f3b407b5c1f321eba1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.4.0",
      "date": "2026-05-12T08:23:12.000Z",
      "arch": "x86_64",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "d69de4d38940bbc9a80ecc3bca3413182ab2139feda1e015a3e689cdad801617",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.4.0",
      "date": "2026-05-22T10:41:07.000Z",
      "arch": "emscripten",
      "commit": "5c4d018c29078c2b6aaf1476e4ca6c4ffb8dc1f3",
      "fileid": "83eced8ba0b4df27b51b69acba329df54529b27bf367c07edee76b9c105486ad",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bflammers/actions/runs/25722298507"
    }
  ]
}