{
  "_id": "6a2523714b233be1983919f2",
  "Package": "nn2poly",
  "Title": "Neural Network Weights Transformation into Polynomial\nCoefficients",
  "Version": "0.1.3",
  "Authors@R": "c(\nperson(given = \"Pablo\", family = \"Morala\", role = c(\"aut\", \"cre\"),\nemail = \"moralapablo@gmail.com\",\ncomment = c(ORCID = \"0000-0002-4109-2330\")),\nperson(given = \"Iñaki\", family = \"Ucar\", role = c(\"aut\"),\nemail = \"iucar@fedoraproject.org\",\ncomment = c(ORCID = \"0000-0001-6403-5550\")),\nperson(given = \"Jose Ignacio\", family = \"Diez\", role = c(\"ctr\"))\n)",
  "Description": "Implements a method that builds the coefficients of a\npolynomial model that performs almost equivalently as a given\nneural network (densely connected). This is achieved using\nTaylor expansion at the activation functions.  The obtained\npolynomial coefficients can be used to explain features (and\ntheir interactions) importance in the neural network, therefore\nworking as a tool for interpretability or eXplainable\nArtificial Intelligence (XAI). See Morala et al. 2021\n<doi:10.1016/j.neunet.2021.04.036>, and 2023\n<doi:10.1109/TNNLS.2023.3330328>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "Config/testthat/edition": "3",
  "URL": "https://ibidat.github.io/nn2poly/,\nhttps://github.com/IBiDat/nn2poly",
  "BugReports": "https://github.com/IBiDat/nn2poly/issues",
  "Repository": "https://ibidat.r-universe.dev",
  "Date/Publication": "2025-12-09 16:43:54 UTC",
  "RemoteUrl": "https://github.com/ibidat/nn2poly",
  "RemoteRef": "HEAD",
  "RemoteSha": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-07 07:44:11 UTC",
    "User": "root"
  },
  "Author": "Pablo Morala [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-4109-2330>),\nIñaki Ucar [aut] (ORCID: <https://orcid.org/0000-0001-6403-5550>),\nJose Ignacio Diez [ctr]",
  "Maintainer": "Pablo Morala <moralapablo@gmail.com>",
  "MD5sum": "791983397d3753037cc23844d45fa43f",
  "_user": "ibidat",
  "_type": "src",
  "_file": "nn2poly_0.1.3.tar.gz",
  "_fileid": "90d4944ac1233a5b8b0fa176a1464e88773b7161c4442712acdb64317881fe37",
  "_filesize": 735409,
  "_sha256": "90d4944ac1233a5b8b0fa176a1464e88773b7161c4442712acdb64317881fe37",
  "_created": "2026-06-07T07:44:11.000Z",
  "_published": "2026-06-07T07:53:21.857Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79941813273,
      "time": 200,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462045129"
    },
    {
      "job": 79941813293,
      "time": 162,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462039955"
    },
    {
      "job": 79941813278,
      "time": 153,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462039316"
    },
    {
      "job": 79941813275,
      "time": 151,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462038862"
    },
    {
      "job": 79941813285,
      "time": 172,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462037928"
    },
    {
      "job": 79941813289,
      "time": 500,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462079156"
    },
    {
      "job": 79941813270,
      "time": 170,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462038429"
    },
    {
      "job": 79941813274,
      "time": 391,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462065493"
    },
    {
      "job": 79941598879,
      "time": 230,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462019893"
    },
    {
      "job": 79941813265,
      "time": 122,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462035355"
    },
    {
      "job": 79941813297,
      "time": 230,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462048813"
    },
    {
      "job": 79941813272,
      "time": 148,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462038512"
    },
    {
      "job": 79941813301,
      "time": 167,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462040572"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ibidat/nn2poly",
  "_commit": {
    "id": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
    "author": "Iñaki Úcar <iucar@fedoraproject.org>",
    "committer": "Iñaki Úcar <iucar@fedoraproject.org>",
    "message": "requires different names now\n",
    "time": 1765298634
  },
  "_maintainer": {
    "name": "Pablo Morala",
    "email": "moralapablo@gmail.com",
    "login": "moralapablo",
    "twitter": "@moralapablo",
    "description": "Assistant Professor at the Department of Statistics - Universidad Carlos III de Madrid (uc3m) and fellow of  uc3m-Santander Big Data Institute (IBiDat).",
    "uuid": 67171888,
    "orcid": "0000-0002-4109-2330"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "role": "Imports"
    },
    {
      "package": "pracma",
      "role": "Imports"
    },
    {
      "package": "keras",
      "role": "Suggests"
    },
    {
      "package": "tensorflow",
      "role": "Suggests"
    },
    {
      "package": "reticulate",
      "role": "Suggests"
    },
    {
      "package": "luz",
      "role": "Suggests"
    },
    {
      "package": "torch",
      "role": "Suggests"
    },
    {
      "package": "cowplot",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "ibidat",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-27",
      "n": 2
    },
    {
      "week": "2025-48",
      "n": 5
    },
    {
      "week": "2025-50",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v0.1.3",
      "date": "2025-12-09"
    }
  ],
  "_stars": 10,
  "_contributors": [
    {
      "user": "moralapablo",
      "count": 81,
      "uuid": 67171888
    },
    {
      "user": "enchufa2",
      "count": 50,
      "uuid": 4542928
    },
    {
      "user": "nachodieez",
      "count": 7,
      "uuid": 119790922
    }
  ],
  "_userbio": {
    "uuid": 78506469,
    "type": "organization",
    "name": "uc3m-Santander Big Data Institute",
    "description": "Interdisciplinarity and excellence in Big Data Analytics"
  },
  "_downloads": {
    "count": 186,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nn2poly"
  },
  "_devurl": "https://github.com/ibidat/nn2poly",
  "_pkgdown": "https://ibidat.github.io/nn2poly/",
  "_searchresults": 23,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/nn2poly.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ibidat/nn2poly",
  "_realowner": "ibidat",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2024-01-24"
    },
    {
      "version": "0.1.1",
      "date": "2024-01-30"
    },
    {
      "version": "0.1.2",
      "date": "2024-11-14"
    },
    {
      "version": "0.1.3",
      "date": "2025-12-12"
    }
  ],
  "_exports": [
    "add_constraints",
    "fit",
    "luz_model_sequential",
    "nn2poly"
  ],
  "_help": [
    {
      "page": "add_constraints",
      "title": "Add constraints to a neural network",
      "topics": [
        "add_constraints"
      ]
    },
    {
      "page": "eval_poly",
      "title": "Polynomial evaluation",
      "topics": [
        "eval_poly"
      ]
    },
    {
      "page": "luz_model_sequential",
      "title": "Build a 'luz' model composed of a linear stack of layers",
      "topics": [
        "luz_model_sequential"
      ]
    },
    {
      "page": "nn2poly",
      "title": "Obtain polynomial representation",
      "topics": [
        "nn2poly"
      ]
    },
    {
      "page": "plot_diagonal",
      "title": "Plots a comparison between two sets of points.",
      "topics": [
        "plot_diagonal"
      ]
    },
    {
      "page": "plot_taylor_and_activation_potentials",
      "title": "Plots activation potentials and Taylor expansion.",
      "topics": [
        "plot_taylor_and_activation_potentials"
      ]
    },
    {
      "page": "plot.nn2poly",
      "title": "Plot method for 'nn2poly' objects.",
      "topics": [
        "plot.nn2poly"
      ]
    },
    {
      "page": "predict.nn2poly",
      "title": "Predict method for 'nn2poly' objects.",
      "topics": [
        "predict.nn2poly"
      ]
    }
  ],
  "_readme": "https://github.com/ibidat/nn2poly/raw/HEAD/README.md",
  "_rundeps": [
    "generics",
    "matrixStats",
    "pracma",
    "Rcpp",
    "RcppArmadillo"
  ],
  "_sysdeps": [
    {
      "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"
    }
  ],
  "_vignettes": [
    {
      "source": "nn2poly-03-classification-example.Rmd",
      "filename": "nn2poly-03-classification-example.html",
      "title": "Classification example using tensorflow",
      "author": "Pablo Morala",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Multiclass classification example",
        "Data preparation",
        "Neural network",
        "Build and train the NN",
        "NN Predictions",
        "Polynomial representation",
        "Using nn2poly",
        "Obtaining polynomial predictions",
        "Visualizing the results"
      ],
      "created": "2024-01-15 16:28:58",
      "modified": "2024-01-17 17:53:39",
      "commits": 2
    },
    {
      "source": "nn2poly-01-introduction.Rmd",
      "filename": "nn2poly-01-introduction.html",
      "title": "Introduction to nn2poly",
      "author": "Pablo Morala",
      "engine": "knitr::rmarkdown",
      "headings": [
        "nn2poly package goal",
        "This vignette: a first example",
        "Polynomial structure in nn2poly",
        "Simulated data",
        "Original neural network",
        "Building the needed input for default nn2poly",
        "Polynomial obtained with nn2poly from weights and activation functions",
        "Predictions using the obtained polynomial",
        "Visualizing the results"
      ],
      "created": "2022-01-15 19:33:55",
      "modified": "2024-11-21 18:47:17",
      "commits": 20
    },
    {
      "source": "nn2poly-02-supported-DL-frameworks.Rmd",
      "filename": "nn2poly-02-supported-DL-frameworks.html",
      "title": "Supported DL frameworks",
      "author": "Pablo Morala",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Data generation",
        "Supported frameworks examples",
        "keras/tensorflow",
        "Model definition",
        "Training",
        "NN predictions",
        "Using nn2poly",
        "luz/torch",
        "Data loader for torch"
      ],
      "created": "2024-01-15 16:28:58",
      "modified": "2024-01-17 18:41:25",
      "commits": 3
    }
  ],
  "_score": 6.315970345456918,
  "_indexed": true,
  "_nocasepkg": "nn2poly",
  "_universes": [
    "ibidat",
    "moralapablo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-06-07T07:47:31.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "4827144661f9d3052b54d1c6735b50a6ad8a87131747bce56bd955aab199d2cd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-06-07T07:46:46.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "53954adef674e38e7106515374161f7ac681f02ec7a609a2a07cc00376cf4ff1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-06-07T07:46:42.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "ea5c34c94d2ab6d0c59194c01b08a0d7d6cf2180f4d8cb4b669385257dd3b0f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-06-07T07:46:39.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "7a27d61cf330a4aea33bceec1f1388581cab32337671a9df5b9efea78e9bb65a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-06-07T07:46:41.000Z",
      "arch": "aarch64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "2ff7142a3eda0cb3f62f4ed9ff1561ed4bf92e06458d8463694119569be365fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-06-07T07:51:12.000Z",
      "arch": "x86_64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "dc732e64b054c5e6db1fb466a6c419e0f7e6d4837593d0d850d71647fadde4bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-06-07T07:46:40.000Z",
      "arch": "aarch64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "81e35e7491bf6137f326f63ccb397cb4b6c1d6cc4396d20b127bc921e0c3f70a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-06-07T07:48:55.000Z",
      "arch": "x86_64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "ea538162236810c6e0af1bf7037afb25510c53a209ccd4d589d3cf454793a3d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.3",
      "date": "2026-06-07T07:46:38.000Z",
      "arch": "emscripten",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "4698a6b865ab7aa6638aaf9bc4816f9343c22262c561683bbab59e78b72a4ef3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-06-07T07:45:46.000Z",
      "arch": "x86_64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "e9340f256e3395eb5a73fb3e52fceff8e848e219a251a833d84e8e8a74c0b67a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-06-07T07:45:37.000Z",
      "arch": "x86_64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "7d6ad94192c97025706cd6767338817b32407ea26e035576a9a974b74f09c6ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-06-07T07:45:45.000Z",
      "arch": "x86_64",
      "commit": "fb8e56c769ac66e1d4c62cbc9dcf99c8d19a9db9",
      "fileid": "d1e9de21ca5fdb1a40ab59c670124dd2b7288222ff58875ce43794af8030c8c5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ibidat/actions/runs/27086387661"
    }
  ]
}