Skip to content

Commit

Permalink
Adding a outlier detection before the PLSR calibration. It uses a LOO…
Browse files Browse the repository at this point in the history
… validation to identify the most uncertain points and remove them from the total dataset
  • Loading branch information
JulienLamour committed Nov 8, 2021
1 parent 5c591b5 commit bfb9395
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 0 deletions.
Binary file modified Overal_PLSR_modeling.pptx
Binary file not shown.
5 changes: 5 additions & 0 deletions PLSR/PLSR_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ hist(data_curated$sqrt_Vcmax25_JB)
## Removing Na values to avoid any issue
data_curated=data_curated[!is.na(data_curated$sqrt_Vcmax25),]

## Using a LOO PLSR model to identify wrong data
test_LOO=plsr(sqrt_Vcmax25~ Spectra,ncomp = 19, data = data_curated, validation = "LOO")
res_LOO=test_LOO$validation$pred[,1,19]-data_curated$sqrt_Vcmax25
outliers=which(abs(res_LOO)>3*sd(res_LOO))
data_curated=data_curated[-outliers,]
############################
#### PLSR models VCMAX25 ###
############################
Expand Down
Binary file modified PLSR/Validation_Albert_et_al_2018.pdf
Binary file not shown.
Binary file modified PLSR/Validation_Alldatasets 2021-11-08 sqrt_Vcmax25_JB.pdf
Binary file not shown.
Binary file modified PLSR/Validation_Alldatasets 2021-11-08.pdf
Binary file not shown.
Binary file removed PLSR/Validation_dataset sqrt_Vcmax25_JB .jpeg
Binary file not shown.
Binary file removed PLSR/Validation_dataset sqrt_Vqmax25_JB .jpeg
Binary file not shown.
Binary file removed PLSR/Validation_random sqrt_Vcmax25_JB .jpeg
Binary file not shown.
Binary file removed PLSR/Validation_random sqrt_Vqmax25_JB .jpeg
Binary file not shown.
Binary file modified PLSR/Validation_random.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLSR/Validation_random_JB.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bfb9395

Please sign in to comment.