Skip to content

Commit

Permalink
Bump version to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Baumann committed Sep 27, 2023
1 parent e94d5bc commit 60e1201
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: simplerspec
Version: 0.2.0
Date: 2023-09-10
Version: 0.2.1
Date: 2023-09-27
Title: Soil and plant spectroscopic model building and prediction
Description: Functions that cover
reading of spectral data, outlier removal,
Expand Down
15 changes: 15 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<!-- NEWS.md is maintained by https://cynkra.github.io/fledge, do not edit -->

# simplerspec 0.2.1

- `fit_pls()`: Fixed the join of predicted vs. measured values when choosing
evaluation with cross-validation; now predictions and model evaluation
statistics are reported at best `ncomp`. Instead of an `dplyr::inner_join()`,
all cross-validated predictions were done with `dplyr::anti_join()`,
specifically when using `evaluation_method == "resampling"` together with
`tuning_method == "resampling"`. This resulted in predictions incorrectly
being aggregated for all tested but not best ncomp (calculated in caret).
Thus, also the cross-validation metrics were not correctly reported what
should have been the case at optimal `ncomp` derived based on resampling and
model tuning. The fix now correctly does an inner join, so that only the
values at best `ncomp` are extracted and used for the evaluation statistics.
This is also shown on the resulting plot outputs.

# simplerspec 0.2.0

- Add new example data set `soilspec_yamsys`.
Expand Down

0 comments on commit 60e1201

Please sign in to comment.