probabl-ai / skore

Skore lets you "Own Your Data Science." It provides a user-friendly interface to track and visualize your modeling results, and perform evaluation of your machine learning models with scikit-learn.
https://probabl.ai
MIT License
46 stars 0 forks source link

Some methods have a weird signature #512

Open sylvaincom opened 3 days ago

sylvaincom commented 3 days ago

Is your feature request related to a problem? Please describe.

from skore import load
project = load("project.skore")
project.put("my_int", 3)
print([method for method in dir(project) if callable(getattr(project, method)) and not method.startswith("__")])
project.put_item?

returns

Signature: project.put_item(key: str, item: skore.item.item.Item)

The skore.item.item.Item is quite weird.

Describe the solution you'd like

I would like something more concise?

Describe alternatives you've considered, if relevant

No response

Additional context

No response

tuscland commented 2 days ago

It would be nice to make the packages more elegant. It surely looks weird to repeat item twice.

rouk1 commented 2 days ago

Note that Item is aliased in its package __init__.py.

Hence you can use

from skore.item import Item