-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: Modify the user API of skore
to respect "what you put is what you get" principle
#1052
base: main
Are you sure you want to change the base?
Conversation
afd8291
to
666f094
Compare
06ff76f
to
0277edb
Compare
c1b9341
to
f4552e9
Compare
I think that this PR will also close: @thomass-dev I let you amend your summary if it is the case. |
Co-authored-by: Auguste Baum <auguste@probabl.ai> commit 86281ca Author: Auguste Baum <auguste@probabl.ai> Date: Wed Jan 8 12:00:46 2025 +0100 mob next [ci-skip] [ci skip] [skip ci] lastFile:skore/tests/integration/ui/test_ui.py commit 9f6f193 Author: Thomas S <thomas@probabl.ai> Date: Wed Jan 8 11:52:12 2025 +0100 mob next [ci-skip] [ci skip] [skip ci] lastFile:skore/tests/integration/ui/test_ui.py commit cd385f6 Author: Auguste Baum <auguste@probabl.ai> Date: Wed Jan 8 11:41:10 2025 +0100 mob next [ci-skip] [ci skip] [skip ci] lastFile:skore/src/skore/persistence/item/sklearn_base_estimator_item.py commit 41c5355 Author: Thomas S <thomas@probabl.ai> Date: Wed Jan 8 11:27:16 2025 +0100 mob next [ci-skip] [ci skip] [skip ci] lastFile:skore/tests/integration/sklearn/test_cross_validate.py commit a7d956e Author: Auguste Baum <auguste@probabl.ai> Date: Wed Jan 8 11:14:59 2025 +0100 mob next [ci-skip] [ci skip] [skip ci] lastFile:skore/tests/unit/view/test_view_repository.py commit 38446cf Author: Thomas S <thomas@probabl.ai> Date: Wed Jan 8 11:01:43 2025 +0100 mob next [ci-skip] [ci skip] [skip ci] lastFile:skore/src/skore/persistence/item/pickle_item.py commit a6e2a79 Author: Thomas S <thomas@probabl.ai> Date: Wed Jan 8 10:51:07 2025 +0100 mob start [ci-skip] [ci skip] [skip ci] Co-authored-by: Auguste Baum <auguste@probabl.ai>
83747f7
to
aff2a5f
Compare
# Conflicts: # skore/src/skore/project/create.py # skore/tests/unit/project/test_project.py
a02785f
to
862dc49
Compare
e3d0aa8
to
80df8db
Compare
Coverage Report for backend
|
c0ad30c
to
c8f3ecf
Compare
510bfa1
to
6255ada
Compare
6255ada
to
4d08a19
Compare
for plot_name, plot in dataclasses.asdict(plots).items() | ||
} | ||
|
||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "Serialize cross-validation settings"
skore/src/skore/persistence/item/cross_validation_reporter_item.py
Outdated
Show resolved
Hide resolved
# add reporter as cached property | ||
instance.reporter = reporter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since CrossValidationReporterItem is never manipulated by users now, I don't think this is necessary
return { | ||
name: plotly.io.from_json(plot_bytes.decode("utf-8")) | ||
for name, plot_bytes in self.plots_bytes.items() | ||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I'm starting to think the empty comment is intentional. If it is maybe you can add a description of what is happening, e.g. here "Pack information into dict"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it was intentional and i have forgotten to ask you the best line to describe the blocks.
120bff0
to
43a296b
Compare
Conflicts: skore/src/skore/item/cross_validation_item.py skore/src/skore/project/project.py skore/tests/unit/project/test_project.py
ec9651e
to
4ede134
Compare
Closes #1045 .
put_item
get_item
get_item_versions
to be item agnosticProject
to hide repositoriesput
to allow the new parameterdisplay_as
repr_html
to reporters