Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new apply function that applies PLSR models to new data #80

Open
serbinsh opened this issue Mar 11, 2021 · 1 comment
Open

Create new apply function that applies PLSR models to new data #80

serbinsh opened this issue Mar 11, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@serbinsh
Copy link
Contributor

apply_plsr(..) to take plsr coefficients/permutation coefficients and input spectra matrix to generate new values in a dataframe.

Options should be:
input coefficients as either R object or a specific file(s)
Input reflectance as either an R matrix or a specific file
wavelength prefix (e.g. "Wave_")
metadata_columns - those in the input spectra to keep in the output object

I don't see this overly complicated but we will want to have a check that wavelengths match. also need to indicate if there is an intercept and where it is.

Im sure other considerations will come up.

Use EcoSIS spectra and built-in coefficients as examples

As part of this build in the Serbin et al 2019 LMA coefficients

@serbinsh serbinsh added the enhancement New feature or request label Mar 11, 2021
@serbinsh serbinsh self-assigned this Mar 11, 2021
@serbinsh
Copy link
Contributor Author

Would want the functionality to match something like this script:

https://github.com/TESTgroup-BNL/spectratrait/blob/perc_rmse_fix/vignettes/apply_sserbin2019_plsr_to_neon_example.md

but with more flexibility and to simplify how to do this for end users

could add the option to use github files for coefficients like in this script example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants