Package: MLSP 0.2.0

Katsutoshi Mizuta
MLSP: Machine Learning Models for Soil Properties from Spectroscopy
Soil spectroscopy studies use many different combinations of spectral preprocessing and calibration methods, which makes results difficult to compare or generalize across studies. For visible and near-infrared (VNIR) spectra (350-2500 nm), runs every combination of preprocessing and calibration methods on identical repeated calibration and validation splits. The 26 preprocessing methods are raw reflectance, standard normal variate, pseudo-absorbance, and 23 Savitzky-Golay smoothers, first derivatives, and second derivatives with linear, quadratic, or cubic polynomials and 3- to 11-point windows, excluding settings that give mathematically identical filters. The calibration methods are principal component regression (PCR), partial least squares regression (PLSR), least absolute shrinkage and selection operator (LASSO), 'Cubist', and random forest. Model complexity is tuned by cross-validation within each calibration set, and combinations are ranked by the coefficient of determination (R2), root mean squared error (RMSE), ratio of performance to interquartile distance (RPIQ), or bias, reporting the top 10 by default. The methods are those most commonly used in published soil spectroscopy studies, following Savitzky and Golay (1964) <doi:10.1021/ac60214a047>, Barnes et al. (1989) <doi:10.1366/0003702894202201>, Rinnan et al. (2009) <doi:10.1016/j.trac.2009.07.007>, Bellon-Maurel et al. (2010) <doi:10.1016/j.trac.2010.05.006>, and Clingensmith et al. (2019) <doi:10.1111/ejss.12753>.
Authors:
MLSP_0.2.0.tar.gz
MLSP_0.2.0.zip(r-4.7-any)MLSP_0.2.0.zip(r-4.6-any)
MLSP_0.2.0.tar.gz(r-4.7-any)MLSP_0.2.0.tar.gz(r-4.6-any)
MLSP_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
MLSP/json (API)
| # Install 'MLSP' in R: |
| install.packages('MLSP', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:85cb35bbd9. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 159 | ||
| source / vignettes | OK | 175 | ||
| linux-release | OK | 144 | ||
| windows-devel | OK | 60 | ||
| windows-release | OK | 56 | ||
| wasm-release | OK | 101 |
Exports:colsMeancubist_preprocesslasso_preprocessmerge_of_lab_and_spectrumml_fmsd.comppcr_preprocessplsr_preprocesspreprocess_methodsrawresultsrf_preprocessspectral_preprocess
Dependencies:clicodetoolsCubistforeachglmnetgluegsignaliteratorslatticelifecyclemagrittrMatrixplsplyrpracmarandomForestRcppRcppEigenreshape2rlangshapestringistringrsurvivalvctrs
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Compute Row-wise Means for Groups of Columns | colsMean |
| Merge Soil Laboratory Data with Spectral Data | merge_of_lab_and_spectrum |
| Compare Spectral Preprocessing and Calibration Methods | ml_f |
| Compute Model Evaluation Metrics | msd.comp |
| Catalogue of Spectral Preprocessing Methods | preprocess_methods |
| Raw Reflectance Predictors | raw |
| Summarize Model Performance Metrics | results |
| Fit and Evaluate One Calibration Method | cubist_preprocess lasso_preprocess pcr_preprocess plsr_preprocess rf_preprocess soil_preprocess |
| Preprocess VNIR Spectra | spectral_preprocess |
