{
  "_id": "6a1ad4741d7bb097a09e418f",
  "Package": "LBBNN",
  "Title": "Latent Binary Bayesian Neural Networks Using 'torch'",
  "Version": "0.1.5",
  "Authors@R": "c(person(\"Lars\", \"Skaaret-Lund\", email = \"lars.skaaret-lund@nmbu.no\", role = c(\"aut\", \"cre\")), person(\"Aliaksandr\", \"Hubin\", email = \"aliaksandr.hubin@nmbu.no\", role = c(\"aut\")), person(\"Eirik\", \"Høyheim\", email = \"eirik.hoyheim@ffi.no\", role = \"aut\"))",
  "Maintainer": "Lars Skaaret-Lund <lars.skaaret-lund@nmbu.no>",
  "Description": "Latent binary Bayesian neural networks (LBBNNs) are\nimplemented using 'torch', an R interface to the LibTorch\nbackend. Supports mean-field variational inference as well as\nflexible variational posteriors using normalizing flows. The\nstandard LBBNN implementation follows Hubin and Storvik (2024)\n<doi:10.3390/math12060788>, using the local reparametrization\ntrick as in Skaaret-Lund et al. (2024)\n<https://openreview.net/pdf?id=d6kqUKzG3V>. Input-skip\nconnections are also supported, as described in Høyheim et al.\n(2025) <doi:10.48550/arXiv.2503.10496>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Language": "en-US",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libfontconfig1-dev libfreetype6-dev libfribidi-dev\nlibglpk-dev libharfbuzz-dev libicu-dev libpng-dev libxml2-dev",
  "Repository": "https://larselund.r-universe.dev",
  "Date/Publication": "2026-04-30 09:24:28 UTC",
  "RemoteUrl": "https://github.com/larselund/lbbnn",
  "RemoteRef": "HEAD",
  "RemoteSha": "ed997359d6668500ad9b560f667dd40eea775bcd",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-30 08:49:59 UTC",
    "User": "root"
  },
  "Author": "Lars Skaaret-Lund [aut, cre],\nAliaksandr Hubin [aut],\nEirik Høyheim [aut]",
  "MD5sum": "2587dbe4c56c0d4181b193b777905445",
  "_user": "larselund",
  "_type": "src",
  "_file": "LBBNN_0.1.5.tar.gz",
  "_fileid": "c05449f6385a519f1c7195b7dcd5f0076473cfa27cf68dab57f7c6f70510954e",
  "_filesize": 321386,
  "_sha256": "c05449f6385a519f1c7195b7dcd5f0076473cfa27cf68dab57f7c6f70510954e",
  "_created": "2026-05-30T08:49:59.000Z",
  "_published": "2026-05-30T12:13:40.558Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78637719827,
      "time": 167,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7306971113"
    },
    {
      "job": 78637719824,
      "time": 162,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7306970575"
    },
    {
      "job": 78637719831,
      "time": 179,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7308081518"
    },
    {
      "job": 78637719836,
      "time": 167,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7308079975"
    },
    {
      "job": 78637491903,
      "time": 228,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7306953486"
    },
    {
      "job": 78637719830,
      "time": 141,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7306968231"
    },
    {
      "job": 78637719825,
      "time": 501,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7307006404"
    },
    {
      "job": 78637719840,
      "time": 401,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7306995495"
    },
    {
      "job": 78637719826,
      "time": 79,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7306961848"
    }
  ],
  "_buildurl": "https://github.com/r-universe/larselund/actions/runs/26679585442",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/larselund/lbbnn",
  "_commit": {
    "id": "ed997359d6668500ad9b560f667dd40eea775bcd",
    "author": "LarsELund <larselnd@gmail.com>",
    "committer": "LarsELund <larselnd@gmail.com>",
    "message": "small update to readme example\n",
    "time": 1777541068
  },
  "_maintainer": {
    "name": "Lars Skaaret-Lund",
    "email": "lars.skaaret-lund@nmbu.no",
    "login": "larselund",
    "description": "",
    "uuid": 69896435
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "torch",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "coro",
      "role": "Imports"
    },
    {
      "package": "svglite",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "torchvision",
      "role": "Suggests"
    }
  ],
  "_owner": "larselund",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-22",
      "n": 9
    },
    {
      "week": "2025-23",
      "n": 27
    },
    {
      "week": "2025-24",
      "n": 7
    },
    {
      "week": "2025-26",
      "n": 1
    },
    {
      "week": "2025-27",
      "n": 8
    },
    {
      "week": "2025-29",
      "n": 7
    },
    {
      "week": "2025-30",
      "n": 20
    },
    {
      "week": "2025-31",
      "n": 18
    },
    {
      "week": "2025-32",
      "n": 14
    },
    {
      "week": "2025-33",
      "n": 2
    },
    {
      "week": "2025-34",
      "n": 2
    },
    {
      "week": "2025-35",
      "n": 1
    },
    {
      "week": "2025-36",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 2
    },
    {
      "week": "2025-38",
      "n": 3
    },
    {
      "week": "2025-41",
      "n": 2
    },
    {
      "week": "2025-42",
      "n": 1
    },
    {
      "week": "2025-45",
      "n": 10
    },
    {
      "week": "2025-46",
      "n": 5
    },
    {
      "week": "2025-47",
      "n": 1
    },
    {
      "week": "2025-48",
      "n": 3
    },
    {
      "week": "2025-49",
      "n": 2
    },
    {
      "week": "2025-50",
      "n": 3
    },
    {
      "week": "2026-02",
      "n": 15
    },
    {
      "week": "2026-03",
      "n": 2
    },
    {
      "week": "2026-04",
      "n": 19
    },
    {
      "week": "2026-13",
      "n": 5
    },
    {
      "week": "2026-17",
      "n": 10
    },
    {
      "week": "2026-18",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "larselund",
      "count": 501,
      "uuid": 69896435
    },
    {
      "user": "aliaksah",
      "count": 12,
      "uuid": 11269685
    },
    {
      "user": "eirihoyh",
      "count": 4,
      "uuid": 54959676
    }
  ],
  "_userbio": {
    "uuid": 69896435,
    "type": "user",
    "name": "Lars Skaaret-Lund"
  },
  "_downloads": {
    "count": 487,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/LBBNN"
  },
  "_devurl": "https://github.com/larselund/lbbnn",
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/LBBNN.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/larselund/lbbnn",
  "_realowner": "larselund",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2025-12-01"
    },
    {
      "version": "0.1.2",
      "date": "2025-12-11"
    },
    {
      "version": "0.1.3",
      "date": "2026-01-07"
    },
    {
      "version": "0.1.4",
      "date": "2026-01-12"
    },
    {
      "version": "0.1.5",
      "date": "2026-04-23"
    }
  ],
  "_exports": [
    "custom_activation",
    "get_dataloaders",
    "get_local_explanations_gradient",
    "lbbnn_conv2d",
    "lbbnn_linear",
    "lbbnn_net",
    "normalizing_flow",
    "quants",
    "rnvp_layer",
    "torch_available",
    "train_lbbnn",
    "validate_lbbnn"
  ],
  "_datasets": [
    {
      "name": "gallstone_dataset",
      "title": "Gallstone Dataset",
      "object": "Gallstone_Dataset",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Gender",
        "Comorbidity",
        "Height",
        "Weight",
        "Total Body Water (TBW)",
        "Extracellular Water (ECW)",
        "Intracellular Water (ICW)",
        "Extracellular Fluid/Total Body Water (ECF/TBW)",
        "Total Body Fat Ratio (TBFR) (%)",
        "Lean Mass (LM) (%)",
        "Body Protein Content (Protein) (%)",
        "Visceral Fat Rating (VFR)",
        "Bone Mass (BM)",
        "Muscle Mass (MM)",
        "Obesity (%)",
        "Total Fat Content (TFC)",
        "Visceral Fat Area (VFA)",
        "Visceral Muscle Area (VMA) (Kg)",
        "Low Density Lipoprotein (LDL)",
        "High Density Lipoprotein (HDL)",
        "Triglyceride",
        "Aspartat Aminotransferaz (AST)",
        "Alkaline Phosphatase (ALP)",
        "Creatinine",
        "Hemoglobin (HGB)",
        "young_adult",
        "adult",
        "senior",
        "CAD_HT_HL_DM",
        "CRP_ZERO",
        "CRP_SMALL",
        "CRP_LARGE",
        "HFA_0_1",
        "Regular_weight",
        "Overweight",
        "Obese",
        "VitD_deficient",
        "VitD_low",
        "VitD_sufficient",
        "VitD_optimal",
        "outcome"
      ],
      "rows": 319,
      "table": true,
      "tojson": true
    },
    {
      "name": "raisin_dataset",
      "title": "Raisins Dataset",
      "object": "Raisin_Dataset",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Area",
        "MajorAxisLength",
        "MinorAxisLength",
        "Eccentricity",
        "ConvexArea",
        "Extent",
        "Perimeter",
        "Class"
      ],
      "rows": 900,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "coef.LBBNN_Net",
      "title": "Get model coefficients (local explanations) of 'lbbnn_net' object",
      "topics": [
        "coef.lbbnn_net"
      ]
    },
    {
      "page": "Custom_activation",
      "title": "Generate a custom activation function.",
      "topics": [
        "custom_activation"
      ]
    },
    {
      "page": "Gallstone_Dataset",
      "title": "Gallstone Dataset",
      "topics": [
        "gallstone_dataset"
      ]
    },
    {
      "page": "get_dataloaders",
      "title": "Wrapper around 'torch::dataloader'",
      "topics": [
        "get_dataloaders"
      ]
    },
    {
      "page": "get_local_explanations_gradient",
      "title": "Get gradient based local explanations for input-skip LBBNNs.",
      "topics": [
        "get_local_explanations_gradient"
      ]
    },
    {
      "page": "LBBNN_Conv2d",
      "title": "Class to generate an LBBNN convolutional layer.",
      "topics": [
        "lbbnn_conv2d"
      ]
    },
    {
      "page": "LBBNN_Linear",
      "title": "Class to generate an LBBNN feed forward layer",
      "topics": [
        "lbbnn_linear"
      ]
    },
    {
      "page": "LBBNN_Net",
      "title": "Feed-forward Latent Binary Bayesian Neural Network (LBBNN)",
      "topics": [
        "lbbnn_net"
      ]
    },
    {
      "page": "normalizing_flow",
      "title": "Class to generate a normalizing flow",
      "topics": [
        "normalizing_flow"
      ]
    },
    {
      "page": "plot_active_paths",
      "title": "Function to plot an input skip structure after removing weights in non-active paths.",
      "topics": [
        "plot_active_paths"
      ]
    },
    {
      "page": "plot_local_explanations_gradient",
      "title": "Plot the gradient based local explanations for one sample.",
      "topics": [
        "plot_local_explanations_gradient"
      ]
    },
    {
      "page": "plot.LBBNN_Net",
      "title": "Plot 'lbbnn_net' objects",
      "topics": [
        "plot.lbbnn_net"
      ]
    },
    {
      "page": "predict.LBBNN_Net",
      "title": "Obtain predictions from the posterior of an 'LBBNN model'",
      "topics": [
        "predict.lbbnn_net"
      ]
    },
    {
      "page": "print.LBBNN_Net",
      "title": "Print summary of an 'lbbnn_net' object",
      "topics": [
        "print.lbbnn_net"
      ]
    },
    {
      "page": "quants",
      "title": "Function to obtain empirical 95% confidence interval, including the mean",
      "topics": [
        "quants"
      ]
    },
    {
      "page": "Raisin_Dataset",
      "title": "Raisins Dataset",
      "topics": [
        "raisin_dataset"
      ]
    },
    {
      "page": "residuals.LBBNN_Net",
      "title": "Residuals from LBBNN fit",
      "topics": [
        "residuals.lbbnn_net"
      ]
    },
    {
      "page": "RNVP_layer",
      "title": "Single RNVP transform layer.",
      "topics": [
        "rnvp_layer"
      ]
    },
    {
      "page": "summary.LBBNN_Net",
      "title": "Summary of LBBNN fit",
      "topics": [
        "summary.lbbnn_net"
      ]
    },
    {
      "page": "torch_available",
      "title": "Check if torch/libtorch is available for examples",
      "topics": [
        "torch_available"
      ]
    },
    {
      "page": "train_LBBNN",
      "title": "Train an instance of 'lbbnn_net'.",
      "topics": [
        "train_lbbnn"
      ]
    },
    {
      "page": "validate_LBBNN",
      "title": "Validate a trained LBBNN model.",
      "topics": [
        "validate_lbbnn"
      ]
    }
  ],
  "_readme": "https://github.com/larselund/lbbnn/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "bit",
    "bit64",
    "callr",
    "cli",
    "coro",
    "cpp11",
    "desc",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "igraph",
    "isoband",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pkgconfig",
    "processx",
    "ps",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "safetensors",
    "scales",
    "stringi",
    "svglite",
    "systemfonts",
    "textshaping",
    "torch",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "LBBNN_tutorial.Rmd",
      "filename": "LBBNN_tutorial.html",
      "title": "Getting started with LBBNN",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Setup",
        "Data loaders",
        "Define the model",
        "Train",
        "Validate"
      ],
      "created": "2025-10-09 11:28:42",
      "modified": "2026-01-06 14:28:32",
      "commits": 3
    }
  ],
  "_score": 6.064457989226918,
  "_indexed": true,
  "_nocasepkg": "lbbnn",
  "_universes": [
    "larselund"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.5",
      "date": "2026-05-30T08:52:41.000Z",
      "distro": "noble",
      "commit": "ed997359d6668500ad9b560f667dd40eea775bcd",
      "fileid": "b1a5a7ada01ae842324e2aaded2df936505fa3d85296b709163b5039ae7a1bdf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larselund/actions/runs/26679585442"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.5",
      "date": "2026-05-30T08:52:38.000Z",
      "distro": "noble",
      "commit": "ed997359d6668500ad9b560f667dd40eea775bcd",
      "fileid": "37ed66bb3ab8c6edc486a709e63aa60db63186f28fb077453d28331a4e1e44aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larselund/actions/runs/26679585442"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.5",
      "date": "2026-05-30T12:12:33.000Z",
      "commit": "ed997359d6668500ad9b560f667dd40eea775bcd",
      "fileid": "3649ceb5ea7c5348cf652a84f671fb7f15ffc96ac22daf3640b5d38d7e2ad69b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larselund/actions/runs/26679585442"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.5",
      "date": "2026-05-30T12:12:14.000Z",
      "commit": "ed997359d6668500ad9b560f667dd40eea775bcd",
      "fileid": "c4c0181c2f95b9d4097b82ecb42a4334779aba9a1d4734fa0454db99bb197e8f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larselund/actions/runs/26679585442"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.5",
      "date": "2026-05-30T08:52:44.000Z",
      "commit": "ed997359d6668500ad9b560f667dd40eea775bcd",
      "fileid": "e91f5ddabf067ddc8e60e3bba8ee32efbb8c19b2c146dfc6e7baca2ec1993922",
      "status": "success",
      "buildurl": "https://github.com/r-universe/larselund/actions/runs/26679585442"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.5",
      "date": "2026-05-30T08:58:13.000Z",
      "commit": "ed997359d6668500ad9b560f667dd40eea775bcd",
      "fileid": "21edb71b646cfc18ddbca0914ead0abcc8d100ca64d296f9e055b5f4e73ba34f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larselund/actions/runs/26679585442"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.5",
      "date": "2026-05-30T08:56:33.000Z",
      "commit": "ed997359d6668500ad9b560f667dd40eea775bcd",
      "fileid": "51764355096d88c618e38cc05e3c13d29a7eb241cebe1e1a549bcd3097cd11f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larselund/actions/runs/26679585442"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.5",
      "date": "2026-05-30T08:51:11.000Z",
      "commit": "ed997359d6668500ad9b560f667dd40eea775bcd",
      "fileid": "8ef45b17dd096e36cd2051b1afb6763cb5299c064d3e6c83d5333d77ee43804d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larselund/actions/runs/26679585442"
    }
  ]
}