Skip to content

neuralGAM

Interpretable Neural Network Based on Generalized Additive Models

v2.0.1 · Dec 3, 2025 · MPL-2.0

Description

Neural Additive Model framework based on Generalized Additive Models from Hastie & Tibshirani (1990, ISBN:9780412343902), which trains a different neural network to estimate the contribution of each feature to the response variable. The networks are trained independently leveraging the local scoring and backfitting algorithms to ensure that the Generalized Additive Model converges and it is additive. The resultant Neural Network is a highly accurate and interpretable deep learning model, which can be used for high-risk AI practices where decision-making should be based on accountable and interpretable algorithms.

Downloads

261

Last 30 days

16644th

659

Last 90 days

76.9K

Last year

Trend: +19.2% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 ERROR
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (1 non-OK)
ERROR r-patched-linux-x86_64

tests

Running ‘testthat.R’ [28s/43s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > 
  > if (identical(Sys.getenv("NOT_CRAN"), "true"))
  +   library(neuralGAM)
  >   test_check("neuralGAM")
  Loading required package: neuralGAM
  NOTE: conda not found... run 'install_neuralGAM()' and load library again...
  [ FAIL 0 | WARN 0 | SKIP 98 | PASS 41 ]
  
  ══ Skipped tests (98) ══════════════════════════════════════════════════════════
  • keras not available (15): 'test-autoplot.R:37:3', 'test-autoplot.R:72:3',
    'test-autoplot.R:92:3', 'test-autoplot.R:120:3', 'test-diagnose.R:12:3',
    'test-diagnose.R:54
...[truncated]...
R:75:3',
    'test-formula.R:92:3', 'test-formula.R:115:3', 'test-formula.R:142:3',
    'test-formula.R:154:3', 'test-formula.R:187:3', 'test-inv_link.R:14:3',
    'test-inv_link.R:25:3', 'test-inv_link.R:36:3', 'test-inv_link.R:44:3',
    'test-inv_link.R:59:3', 'test-link.R:19:3', 'test-link.R:29:3',
    'test-link.R:39:3', 'test-link.R:46:3', 'test-link.R:54:3',
    'test-plot_history.R:14:3', 'test-print.R:15:3', 'test-weight.R:14:3',
    'test-weight.R:26:3', 'test-weight.R:44:3', 'test-weight.R:53:3',
    'test-weight.R:62:3', 'test-weight.R:71:3', 'test-weight.R:81:3'
  
  [ FAIL 0 | WARN 0 | SKIP 98 | PASS 41 ]
  Error: /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/libpython3.12.so - /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/libpython3.12.so: cannot enable executable stack as shared object requires: Invalid argument
  Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 24, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [23s/36s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional 
...[truncated]...
3-linux-x86_64-gnu/lib/libpython3.12.so - /tmp/check-CRAN-regular-hornik/cache/R/reticulate/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/libpython3.12.so: cannot enable executable stack as shared object requires: Invalid argument
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies tensorflow keras ggplot2 magrittr reticulate formula.tools matrixStats patchwork rlang neuralGAM

Version History

new 2.0.1 Mar 10, 2026
updated 2.0.1 ← 2.0.0 diff Dec 2, 2025
updated 2.0.0 ← 1.1.1 diff Oct 7, 2025
updated 1.1.1 ← 1.1.0 diff Apr 18, 2024
updated 1.1.0 ← 1.0.0 diff Sep 19, 2023
new 1.0.0 Sep 6, 2023