fit_rf | R Documentation |
Perform calibration sampling and use selected calibration set for model tuning
fit_rf(
spec_chem,
response,
variable = NULL,
evaluation_method = "test_set",
validation = NULL,
split_method = "ken_stone",
ratio_val,
ken_sto_pc = 2,
pc = NULL,
invert = TRUE,
tuning_method = "resampling",
resampling_seed = 123,
cv = NULL,
ntree_max = 500,
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 |
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_seed |
Random seed (integer) that will be used for generating
resampling indices, which will be supplied to |
cv |
Depreciated. Use |
ntree_max |
Maximum random forest trees
by caret::train. Caret will aggregate a performance profile using resampling
for an integer sequence from 1 to |
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.