Package: KRLS 1.7-1

KRLS: Kernel-Based Regularized Least Squares

Implements Kernel-based Regularized Least Squares (KRLS), a machine learning method to fit multidimensional functions y = f(x) for regression and classification problems without relying on linearity or additivity assumptions. KRLS finds the best fitting function by minimizing the squared loss of a Tikhonov regularization problem, using Gaussian kernels as radial basis functions. For further details see Hainmueller and Hazlett (2014, <doi:10.1093/pan/mpt019>).

Authors:Jens Hainmueller [aut, cre], Chad Hazlett [aut]

KRLS_1.7-1.tar.gz
KRLS_1.7-1.zip(r-4.7-any)KRLS_1.7-1.zip(r-4.6-any)KRLS_1.7-1.zip(r-4.5-any)
KRLS_1.7-1.tgz(r-4.6-any)KRLS_1.7-1.tgz(r-4.5-any)
KRLS_1.7-1.tar.gz(r-4.7-any)KRLS_1.7-1.tar.gz(r-4.6-any)
KRLS_1.7-1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
KRLS/json (API)

# Install 'KRLS' in R:
install.packages('KRLS', repos = c('https://j-hai.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/j-hai/krls/issues

On CRAN:

Conda:

7.17 score 2 packages 98 scripts 468 downloads 5 mentions 10 exports 0 dependencies

Last updated from:4a2f765d09. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK155
source / vignettesOK186
linux-releaseOK157
macos-releaseOK153
macos-oldrelOK246
windows-develOK75
windows-releaseOK111
windows-oldrelOK90
wasm-releaseOK87

Exports:b_maxvarKb_maxvarK_nystromgausskernelget_landmarkskrlsloolossplot.krlspredict.krlssolveforcsummary.krls

Dependencies:

Scaling KRLS to larger n: the Nystrom approximation
Motivation | A scaling comparison | Scaling beyond what exact KRLS can do | Reusing landmarks across fits | Choosing the lambda criterion | What carries over from the exact path | Limitations

Last update: 2026-05-12
Started: 2026-05-11

Quickstart: kernel-regularized least squares with KRLS
Why KRLS? | A simulated example | Fit | Tidy output | Visualize | Augment for downstream analysis | When KRLS is the right tool | See also | References

Last update: 2026-05-11
Started: 2026-05-09