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

Visualize performance for subset featurespaces #43

Merged
merged 8 commits into from
Oct 30, 2023

Conversation

gwaybio
Copy link
Member

@gwaybio gwaybio commented Oct 19, 2023

subset_featurespace_multiclass_model_eval

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@gwaybio
Copy link
Member Author

gwaybio commented Oct 23, 2023

@jenna-tomkinson - the recent commits update the PR curves for the balanced model. Thanks!

Copy link
Member

@jenna-tomkinson jenna-tomkinson left a comment

Choose a reason for hiding this comment

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

LGTM! I had a few comments to address but mainly just questions for my understanding.

7.figures/nbconverted/Figure3_model_evaluation.r Outdated Show resolved Hide resolved
@@ -139,12 +167,20 @@ f1_score_df <- readr::read_tsv(
"Phenotypic_Class" = "c",
"data_split" = "c",
"shuffled" = "c",
"feature_type" = "c"
"feature_type" = "c",
"balance_type" = "c"
Copy link
Member

Choose a reason for hiding this comment

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

Based on the plots, I am assuming that the balance type is no longer included, so could this be removed from the code since we have shifted to class-balanced models?

Copy link
Member Author

@gwaybio gwaybio Oct 30, 2023

Choose a reason for hiding this comment

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

On this specific command, I am loading a dataset using readr. IMO, readr does even a better job than pandas at specifying data type, AKA dtype. This line that you are highlighting is reading in the column named "balance_type" (and other columns) as a character dtype.

It is true that we only use balanced models in this visualization, but in order to do so, we need to make sure the column is loaded properly (specifically, as a character), so that we can filter later.

@gwaybio
Copy link
Member Author

gwaybio commented Oct 30, 2023

Thanks for the review @jenna-tomkinson ! I will go ahead and merge now.

@gwaybio gwaybio merged commit 58f9597 into WayScience:main Oct 30, 2023
@gwaybio gwaybio deleted the visualize-subset-featurespaces branch October 30, 2023 18:53
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