Package: KRLS 1.7-0

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-0.tar.gz
KRLS_1.7-0.zip(r-4.7)KRLS_1.7-0.zip(r-4.6)KRLS_1.7-0.zip(r-4.5)
KRLS_1.7-0.tgz(r-4.6-any)KRLS_1.7-0.tgz(r-4.5-any)
KRLS_1.7-0.tar.gz(r-4.7-any)KRLS_1.7-0.tar.gz(r-4.6-any)
KRLS_1.7-0.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.08 score 2 packages 100 scripts 589 downloads 5 mentions 10 exports 0 dependencies

Last updated from:bffb5c229f. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK125
source / vignettesOK207
linux-release-x86_64OK129
macos-release-arm64OK104
macos-oldrel-arm64OK116
windows-develOK93
windows-releaseOK92
windows-oldrelOK83
wasm-releaseOK100

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