Datatype comparison bug 2021-12-01#90
Merged
fedshyvana merged 3 commits intomahmoodlab:masterfrom Dec 2, 2021
Merged
Conversation
Collaborator
|
thanks Andrew, i did not anticipate slide ids to consist of only numerical characters but i suppose that is indeed possible. |
Contributor
Author
|
Thanks very much Max! I apologize I didn’t see the “Allow edits by maintainers” checkbox that I am now seeing, but of course feel free to modify as you see fit.
Thanks so much for making this software available, I can’t wait to get it working on our data!
Best,
Andrew
[Text Frederick National Laboratory on a teal background]
[LinkedIn icon]<https://www.linkedin.com/company/frederick-national-laboratory-for-cancer-research/> [Twitter icon] <https://twitter.com/FredNatLab> [Facebook icon] <https://www.facebook.com/FredNatLab> [Instagram icon] <https://www.instagram.com/frednatlab/>
Andrew Weisman, Ph.D. | High Performance Computing Analyst
Strategic and Data Science Initiatives
[Phone icon]
240-276-5891
[Email icon]
***@***.******@***.***> [Contractor]
[Location icon]
9605 Medical Center Dr, Rm 300-21, Rockville, MD 20850
[Link icon]
frederick.cancer.gov<https://frederick.cancer.gov/>
The Frederick National Laboratory for Cancer Research is operated by Leidos Biomedical Research, Inc. for the National Cancer Institute.
From: Max Lu ***@***.***>
Sent: Thursday, December 2, 2021 12:07 PM
To: mahmoodlab/CLAM ***@***.***>
Cc: Weisman, Andrew (NIH/NCI) [C] ***@***.***>; Author ***@***.***>
Subject: Re: [mahmoodlab/CLAM] Datatype comparison bug 2021-12-01 (PR #90)
thanks Andrew, i did not anticipate slide ids to consist of only numerical characters but i suppose that is indeed possible.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#90 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKPX6F772HMQUBELJZGL4N3UO6RSLANCNFSM5JGQJZDQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
doori
pushed a commit
to msk-mind/CLAM
that referenced
this pull request
Jan 26, 2022
…son_bug-2021-12-01 Datatype comparison bug 2021-12-01
This file contains hidden or 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
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.
Without "dtype=self.slide_data['slide_id'].dtype", read_csv() will convert all-number columns to a numerical type. Even if we convert numerical columns back to objects later, we may lose zero-padding in the process; the columns must be correctly read in from the get-go. When we compare the individual train/val/test columns to self.slide_data['slide_id'] in the get_split_from_df() method, we cannot compare objects (strings) to numbers or even to incorrectly zero-padded objects/strings. An example of this breaking is shown in https://github.com/andrew-weisman/clam_analysis/tree/main/datatype_comparison_bug-2021-12-01 (look at the Jupyter notebook in GitHub).