README.md

nn2poly: Transforming Neural Networks into Polynomials

Build_Status Coverage_Status CRAN_Status_Badge CRAN Downloads DOI DOI

The nn2poly package implements the NN2Poly method that allows to transform an already trained deep feed-forward fully connected neural network into a polynomial representation that predicts as similar as possible to the original neural network. 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).

Related Papers:

Installation

The latest release version available in CRAN can be installed as:

install.packages("nn2poly")

The installation from GitHub requires the remotes package.

# install.packages("remotes")
remotes::install_github("IBiDat/nn2poly")

Funding

This package is part of the project/grant PDC2022-133359-I00 funded by MCIN/AEI/10.13039/501100011033 and by the European Union “NextGenerationEU/PRTR”.

Funding



Try the nn2poly package in your browser

Any scripts or data that you put into this service are public.

nn2poly documentation built on July 18, 2026, 1:07 a.m.