Neural Network Weights Transformation into Polynomial Coefficients
Overview
Implements a method that builds the coefficients of a polynomial model that performs almost equivalently as a given neural network (densely connected). This is achieved using Taylor expansion at the activation functions. The obtained polynomial coefficients can be used to explain features (and their interactions) importance in the neural network, therefore working as a tool for interpretability or eXplainable Artificial Intelligence (XAI). See Morala et al. 2021 doi:10.1016/j.neunet.2021.04.036, and 2023 doi:10.1109/TNNLS.2023.3330328.
- Fix UB in hash implementation (#84).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 9 (1 internal)
- Examples that run
- 60%3 run in a plain check · 2 never run
- Exported functions with examples
- 75%
- Documented parameters
- 100%
- Return-value docs
- 75%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 87%
- Median days to close, 50 most recently updated closed issues
- 16
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
9 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/ibidat/nn2poly on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-07-18 · The repository has a site deploy workflow
pkgdown site last built 2026-07-18
Show all practicesHide 2 practices
Dependencies
Installing nn2poly adds 3 packages (2 with compiled code, 2.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB, generics 46 KB.
Code & Tests
People & History
Package metadata
- First published
- 2024-01-24
- Total releases
- 6 / 2 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 1.6 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("nn2poly")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1016/j.neunet.2021.04.036, 10.1109/tnnls.2023.3330328.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.