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

ENH Card class: add repr and str methods #68

Merged
merged 6 commits into from
Aug 5, 2022
Merged

ENH Card class: add repr and str methods #68

merged 6 commits into from
Aug 5, 2022

Conversation

BenjaminBossan
Copy link
Collaborator

Solves #59

We decided not to follow the eval(repr(card)) == card convention, as it wouldn't work here.

Copy link
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.

Awesome!

pyproject.toml Outdated
@@ -10,6 +10,7 @@ profile = "black"
filterwarnings = [
"error::DeprecationWarning",
"error::FutureWarning",
"ignore::sklearn.exceptions.ConvergenceWarning",
Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't add this here, it's quite a bad one to completely ignore I'd say.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I reverted it.

skops/card/_model_card.py Show resolved Hide resolved
This is just in case that aRepr is a singleton that affects other code.
Copy link
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.

This looks quite good to me. I'll let @merveenoyan also have a look before merging.

Copy link
Collaborator

@merveenoyan merveenoyan left a comment

Choose a reason for hiding this comment

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

Thanks a lot for tackling this, LGTM

@merveenoyan merveenoyan merged commit 41148fe into skops-dev:main Aug 5, 2022
@BenjaminBossan BenjaminBossan deleted the issue-59/card-repr-and-str-methods branch August 5, 2022 10:14
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.

3 participants