Skip to content

MNT Model card refactor to move plotting & table#163

Merged
adrinjalali merged 5 commits intoskops-dev:mainfrom
merveenoyan:refactor_card
Oct 5, 2022
Merged

MNT Model card refactor to move plotting & table#163
adrinjalali merged 5 commits intoskops-dev:mainfrom
merveenoyan:refactor_card

Conversation

@merveenoyan
Copy link
Copy Markdown
Collaborator

Resolves #157.
I moved plot & hyperparameter table to _generate_card() to keep save() atomic, given it's already called during save(). Does it sound good?

Copy link
Copy Markdown
Collaborator

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

I have a comment that might simplify the code a bit, otherwise LGTM.

Regarding the testing, we could test exactly the case where card.model is reassigned, but I don't think it's strictly necessary.

Comment thread skops/card/_model_card.py Outdated
Copy link
Copy Markdown
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

Comment thread skops/card/_model_card.py Outdated
@adrinjalali adrinjalali changed the title Model card refactor to move plotting & table MNT Model card refactor to move plotting & table Oct 5, 2022
@adrinjalali adrinjalali merged commit 8fe2577 into skops-dev:main Oct 5, 2022
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.

Create hyperparameter table and model diagram during render

3 participants