-
Notifications
You must be signed in to change notification settings - Fork 54
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
PR addressing Issue #150 #184
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The file allows for testing of the `plotArrow()` function. Two included tests check for general functionality on DIABLO objects as well as inability to function on `(mint).(s)plsda` objects
fix: if `validation = "loo"` in `tune.block.splsda()`, the parameter `n` would not be set. moved the lines which define `n` to outside of the `if(validation= "Mfold")` statement so its run in all cases. Additionally, increased the specificity of some warnings and errors in this function
test commit
fix: improved nzv feature handling for block contexts, particularly via `auroc()` Filtration applied more consistently via `Check.entry.wrapper.mint.block()` . Additional failsafe added here for zero variance features. `predict()` also now checks to see if filtration has been applied to prevent it applying filtering twice. tests: adjusted new test to ensure it passes
fix: changed the depreciated `size` parameter to `linewidth` and changed `aes_string()` to `aes()` fix: additional `aes_string()` call changed to `aes()` fix: changing `aes_string()` to `aes()` introduced error. Adjusted `geom_path` calls so X and Y vectors are appropriately set refactor: removed some commented lines tests: added test for `plotIndiv.mint.plsda()` with `ellipse = TRUE`
docs: added my name to author list and updated maintainer
refactor: adjusted order of processes to increase efficiency in `repeat_cv_j()` within `tune.spca()` enhance: added safety catch for NAs provided to `tune.spca()`. It replaces NAs with 0 and notifies user of the change test: added new test file for `tune.spca()`
test: removed some `expect_equal()` states from `test-tune.spca()` as they were producing inconsistent values locally vs via GitHub Actions
The file allows for testing of the `plotArrow()` function. Two included tests check for general functionality on DIABLO objects as well as inability to function on `(mint).(s)plsda` objects
Second set of commits on 14/12/2022 reflect initial set of commits, but replicated after the branch was rebased to master following PR #281. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Users were attempting to run
plotArrow()
on both(s)plsda
andmint.splsda
objects. In the case of the former, there is only one dataset. An arrow can only be drawn if there exists two points for each sample. For the latter, while there are multiple datasets, being a P-integrative context, the samples for each dataset are different. Hence, the same functionality employed forblock.splsda
objects cannot be employed.This fix merely adds a check at the start of the
plotArrow()
function which determines if its a(s)plsda
ormint.splsda
object. If so, the function is stopped.