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

MetaClean labels flipped #59

Closed
LeonSaal opened this issue Dec 7, 2022 · 1 comment
Closed

MetaClean labels flipped #59

LeonSaal opened this issue Dec 7, 2022 · 1 comment

Comments

@LeonSaal
Copy link
Contributor

LeonSaal commented Dec 7, 2022

Hi,
I am getting familiar with using patRoon 2.1.0 inside a Docker container.
I was trying to use the predictCheckFeaturesSession with the MetaCleanData::example_model and when I inspected the prediction results with checkFeatures, I noticed that mostly bad features were kept and good features removed fully:

Example: Kept features vs. removed features:
image vs. image

In the code the names subset with c("GOOD", "Pass") are removed:

patRoon/R/check_features.R

Lines 469 to 470 in d2923b0

rmf <- gNames[preds[preds$Pred_Class %in% c("GOOD", "Pass"), "EIC"]]
saveCheckSession(list(removeFully = rmf, removePartially = list()), session, fGroups[, rmf], "featureGroups")

I think it should be the other way around e.g.:

rmf <- gNames[preds[preds$Pred_Class %in% c("BAD", "Fail"), "EIC"]] 
saveCheckSession(list(removeFully = rmf, removePartially = list()), session, fGroups[, rmf], "featureGroups")

Or have I missed an important part?

Kind regards and thank you for your help!

Leon

rickhelmus added a commit that referenced this issue Dec 12, 2022
@rickhelmus
Copy link
Owner

Hi Leon,

Many thanks for spotting this (silly!) mistake. I think it happened after refactoring some code a while ago. Anyway, it should pick the bad/fail peaks now :-)

Thanks,
Rick

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

No branches or pull requests

2 participants