fit_pls | R Documentation |
Perform calibration sampling and use selected calibration set for model tuning
fit_pls(
spec_chem,
response,
variable = NULL,
center = TRUE,
scale = TRUE,
evaluation_method = "test_set",
validation = TRUE,
split_method = "ken_stone",
ratio_val = 1/3,
ken_sto_pc = 2,
pc,
invert = TRUE,
tuning_method = "resampling",
resampling_method = "kfold_cv",
cv = NULL,
resampling_seed = 123,
pls_ncomp_max = 20,
ncomp_fixed = 5,
print = TRUE,
env = parent.frame()
)
pls_ken_stone(
spec_chem,
response,
variable = NULL,
center = TRUE,
scale = TRUE,
evaluation_method = "test_set",
validation = TRUE,
split_method = "ken_stone",
ratio_val = 1/3,
ken_sto_pc = 2,
pc,
invert = TRUE,
tuning_method = "resampling",
resampling_method = "kfold_cv",
cv = NULL,
resampling_seed = 123,
pls_ncomp_max = 20,
ncomp_fixed = 5,
print = TRUE,
env = parent.frame()
)
spec_chem |
Tibble that contains spectra, metadata and chemical
reference as list-columns. The tibble to be supplied to |
response |
Response variable as symbol or name
(without quotes, no character string). The provided response symbol needs to be
a column name in the |
variable |
Depreciated and replaced by |
center |
Logical whether to perform mean centering of each spectrum column
(e.g. wavenumber or wavelength) after common spectrum preprocessing. Default is
|
scale |
Logical whether to perform standard deviation scaling
of each spectrum column (e.g. wavenumber or wavelength) after common
spectrum preprocessing. Default is |
evaluation_method |
Character string stating evaluation method.
Either |
validation |
Depreciated and replaced by |
split_method |
Method how to to split the data into a independent test
set. Default is |
ratio_val |
Ratio of validation (test) samples to total number of samples (calibration (training) and validation (test)). |
ken_sto_pc |
Number of component used
for calculating mahalanobsis distance on PCA scores for computing
Kennard-Stone algorithm.
Default is |
pc |
Depreciated; renamed argument is |
invert |
Logical |
tuning_method |
Character specifying tuning method. Tuning method
affects how caret selects a final tuning value set from a list of candidate
values. Possible values are |
resampling_method |
Character specifying resampling method. Currently,
|
cv |
Depreciated. Use |
resampling_seed |
Random seed (integer) that will be used for generating
resampling indices, which will be supplied to |
pls_ncomp_max |
Maximum number of PLS components that are evaluated
by caret::train. Caret will aggregate a performance profile using resampling
for an integer sequence from 1 to |
ncomp_fixed |
Integer of fixed number of PLS components. Will only be
used when |
print |
Logical expression whether model evaluation graphs shall be printed |
env |
Environment where function is evaluated. Default is
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.