Package: lwpls 0.3.0

lwpls: Locally-Weighted Partial Least Squares for 'tidymodels'
Locally-weighted partial least squares (LW-PLS) is a just-in-time learning method that builds a dedicated weighted partial least squares model around every new sample, where training samples are weighted by their similarity to that sample (Kim et al. (2011) <doi:10.1016/j.ijpharm.2011.10.007>). Regression (single or multiple outcomes) and classification (locally weighted partial least squares-discriminant analysis; Bevilacqua and Marini (2014) <doi:10.1016/j.aca.2014.05.057>) are supported. The local models can be robust to outliers, by partial robust M-regression (Serneels et al. (2005) <doi:10.1016/j.chemolab.2005.04.007>), and sparse (Hoffmann et al. (2015) <doi:10.1016/j.chemolab.2015.09.019>). The prediction kernel is written in C++ with 'RcppArmadillo', and the model is integrated with the 'parsnip', 'dials', 'tune' and 'yardstick' packages so it can be used within the 'tidymodels' framework. Diagnostics of the local models (prediction reliability, local regression vectors, robust weights and selected predictors) come with 'ggplot2' plots designed for spectroscopic data.
Authors:
lwpls_0.3.0.tar.gz
lwpls_0.3.0.zip(r-4.7-x86_64)lwpls_0.3.0.zip(r-4.7-arm64)lwpls_0.3.0.zip(r-4.6-x86_64)lwpls_0.3.0.zip(r-4.6-arm64)lwpls_0.3.0.zip(r-4.5-x86_64)
lwpls_0.3.0.tgz(r-4.6-x86_64)lwpls_0.3.0.tgz(r-4.6-arm64)lwpls_0.3.0.tgz(r-4.5-x86_64)lwpls_0.3.0.tgz(r-4.5-arm64)
lwpls_0.3.0.tar.gz(r-4.7-arm64)lwpls_0.3.0.tar.gz(r-4.7-x86_64)lwpls_0.3.0.tar.gz(r-4.6-arm64)lwpls_0.3.0.tar.gz(r-4.6-x86_64)
lwpls_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
lwpls/json (API)
| # Install 'lwpls' in R: |
| install.packages('lwpls', repos = c('https://christiangoueguel.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/christiangoueguel/lwpls/issues
Pkgdown/docs site:https://christiangoueguel.com
chemometricsjust-in-time-learninglocally-weighted-plslwplsdalwplsrmachine-learningnir-spectroscopyparsnippartial-least-squaresrcppsoft-sensortidymodelsopenblascpp
Last updated from:92635020ad. Checks:15 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 153 | ||
| linux-devel-x86_64 | OK | 189 | ||
| source / vignettes | OK | 262 | ||
| linux-release-arm64 | OK | 142 | ||
| linux-release-x86_64 | OK | 196 | ||
| macos-release-arm64 | OK | 152 | ||
| macos-release-x86_64 | OK | 253 | ||
| macos-oldrel-arm64 | OK | 147 | ||
| macos-oldrel-x86_64 | OK | 221 | ||
| windows-devel-arm64 | OK | 275 | ||
| windows-devel-x86_64 | OK | 185 | ||
| windows-release-arm64 | OK | 329 | ||
| windows-release-x86_64 | OK | 178 | ||
| windows-oldrel-x86_64 | OK | 109 | ||
| wasm-release | OK | 126 |
Exports:localizationlwplslwpls_fitlwpls_localplot_coefficientsplot_reliabilityplot_robust_weightsplot_selectionsimilaritysparsitytrimmed_rmsetrimmed_rmse_vecvalues_similarity
Dependencies:clicodetoolscpp11dialsDiceDesigndplyrfarvergenericsggplot2globalsgluegtablehardhatisobandlabelinglifecyclemagrittrparsnippillarpkgconfigprettyunitspurrrR6RColorBrewerRcppRcppArmadillorlangS7scalessfdsparsevctrsstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithryardstick
Last update: 2026-10-07
Started: 2026-10-07
Last update: 2026-10-07
Started: 2026-10-06
Last update: 2026-10-06
Started: 2026-10-06
Last update: 2026-10-06
Started: 2026-10-06
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Localization parameter for LW-PLS | localization |
| Locally-weighted partial least squares | lwpls |
| Fit a locally-weighted partial least squares model | lwpls_fit lwpls_fit.data.frame lwpls_fit.default lwpls_fit.formula lwpls_fit.matrix lwpls_fit.recipe |
| Local models of LW-PLS predictions | lwpls_local lwpls_local.default lwpls_local.lwpls_fit lwpls_local.model_fit lwpls_local.workflow |
| Plots of LW-PLS local models | autoplot.lwpls_local lwpls_plots plot_coefficients plot_reliability plot_robust_weights plot_selection |
| Predictions for several numbers of components | multi_predict._lwpls_fit |
| Predict from a locally-weighted PLS model | predict.lwpls_fit |
| Similarity index for LW-PLS | similarity values_similarity |
| Sparsity of the LW-PLS local models | sparsity |
| Trimmed root mean squared error | trimmed_rmse trimmed_rmse.data.frame trimmed_rmse_vec |
| Update a locally-weighted PLS specification | update.lwpls |
