splineKANr - B-Spline Kolmogorov-Arnold Networks in Native R 'torch'
Implements Kolmogorov-Arnold Networks (KAN) whose edge
functions are B-splines plus a residual base activation,
written in native R on top of the 'torch' package. Provides
Cox-de Boor basis evaluation with explicit extrapolation
policies, multi-layer networks, Adam and L-BFGS training with
validation, early stopping, input and output normalization,
gradient clipping and reproducible seeds, adaptive
(sample-based) grid updates, grid refinement, KAN-specific
sparsity regularization, pruning, edge-function visualization
and model persistence. A dependency-free base R reference
implementation with analytic gradients is included as a
numerical oracle and as a training backend that does not need
'libtorch'. The design follows Liu et al. (2024)
<doi:10.48550/arXiv.2404.19756>.