Core model development workflowThese functions prepare spectra for model development and allow for the streamlined testing of model performance. |
|
---|---|
Plot spectral data, highlighting outliers as identified using Mahalanobis distance |
|
Filter spectral data frame based on Mahalanobis distance |
|
Aggregate data based on grouping variables and a user-provided function |
|
Test the performance of spectral models |
|
Internal useWhile these functions can be used on their own, they were developed to be called within test_spectra(). |
|
Pretreat spectral data according to user-designated method |
|
Format multiple trials with or without overlapping genotypes into training and test sets according to user-provided cross validation scheme |
|
Train a model based predict reference values with spectral data |
|
Model development and testing for routine use |
|
Save spectral prediction model and model performance statistics |
|
Use provided model object to predict trait values with input dataset |
|
Example Dataset |
|
Example vis-NIRS and reference dataset |