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

BUG: Move cross validation function from innereye-dl to himl #262

Merged
merged 5 commits into from
Mar 24, 2022

Conversation

@maxilse maxilse requested a review from ant0nsc March 24, 2022 12:21
@maxilse maxilse changed the title BUG: Move cross validation functions for TCGA-CRCk and PANDA from innereye-dl to himl BUG: Move cross validation function from innereye-dl to himl Mar 24, 2022
maxilse added 3 commits March 24, 2022 12:35

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Copy link
Collaborator

@ant0nsc ant0nsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, only minor comment

@@ -275,7 +276,7 @@ def from_groups(df: pd.DataFrame,

@staticmethod
def get_df_from_ids(df: pd.DataFrame, ids: Sequence[str],
subject_column: str = "") -> pd.DataFrame:
subject_column: Optional[str] = "") -> pd.DataFrame:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the rest of the codebase, we use "" to indicate missing. None and "" both evaluate to False, so you can write 'if not mystring:...'

@maxilse maxilse enabled auto-merge (squash) March 24, 2022 13:14
@maxilse maxilse merged commit a108cf4 into main Mar 24, 2022
@maxilse maxilse deleted the maxilse/cross_val_fix branch March 24, 2022 13:37
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

Successfully merging this pull request may close these issues.

None yet

2 participants