thangldKANr: Kolmogorov-Arnold Networks with Interchangeable Edge Bases Using 'torch'

Implements Kolmogorov-Arnold Networks (KAN) in R on top of the 'torch' package (no 'Python' needed) with one network engine and interchangeable edge bases: Chebyshev, Legendre and Jacobi polynomials, Gaussian radial basis functions (FastKAN), Mexican hat wavelets (Bozorgasl and Chen (2024) <doi:10.48550/arXiv.2405.12832>), safe Pade rational functions (Molina, Schramowski and Kersting (2020) <doi:10.48550/arXiv.1907.06732>), a hybrid of SiLU, Chebyshev and radial basis parts, and squared rectified linear unit bumps (Qiu et al. (2024) <doi:10.48550/arXiv.2406.02075>). Each layer may use a different basis, and further bases can be registered by other packages. Besides tabular regression, the same layers power graph KANs for node regression (neighbourhood aggregation with the normalized adjacency matrix, as in Kiamari, Kiamari and Krishnamachari (2024) <doi:10.48550/arXiv.2406.06470>) and lag-window KANs for one-step time series forecasting. Provides multi-layer networks with Adam training, training-only standardization, validation-based early stopping, reproducible seeds, edge-function evaluation and plots, and model persistence. A base R reference implementation with analytic gradients serves as a numerical oracle and as a training backend that does not need 'libtorch'. The network follows Liu et al. (2024) <doi:10.48550/arXiv.2404.19756>.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: graphics, stats, torch (≥ 0.13.0), utils
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-11-20
DOI: 10.32614/CRAN.package.thangldKANr (may not be active yet)
Author: Thang Le-Dinh [aut, cre, cph]
Maintainer: Thang Le-Dinh <thang87sg at gmail.com>
BugReports: https://github.com/Thangpro9999/thangldKANr/issues
License: GPL-3
URL: https://github.com/Thangpro9999/thangldKANr
NeedsCompilation: no
Language: en-US
Citation: thangldKANr citation info
Materials: README, NEWS
CRAN checks: thangldKANr results

Documentation:

Reference manual: thangldKANr.html , thangldKANr.pdf
Vignettes: Node regression with graph KANs (source, R code)
Lag-window KAN forecasting with thangldKANr (source, R code)
Kolmogorov-Arnold networks with interchangeable edge bases (source, R code)

Downloads:

Package source: thangldKANr_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): thangldKANr_0.1.0.tgz, r-oldrel (arm64): thangldKANr_0.1.0.tgz, r-release (x86_64): thangldKANr_0.1.0.tgz, r-oldrel (x86_64): thangldKANr_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=thangldKANr to link to this page.