Skip to content

Commit

Permalink
Rename CrossValidationItem to CrossValidationReporterItem
Browse files Browse the repository at this point in the history
  • Loading branch information
thomass-dev committed Jan 13, 2025
1 parent c8f3ecf commit c4b2ee8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions skore/src/skore/persistence/item/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Any

from . import skrub_table_report_item as SkrubTableReportItem
from .cross_validation_item import CrossValidationItem
from .cross_validation_reporter_item import CrossValidationReporterItem
from .item import Item, ItemTypeError
from .media_item import MediaItem
from .numpy_array_item import NumpyArrayItem
Expand All @@ -31,7 +31,7 @@ def object_to_item(object: Any) -> Item:
SklearnBaseEstimatorItem,
MediaItem,
SkrubTableReportItem,
CrossValidationItem,
CrossValidationReporterItem,
):
with suppress(ImportError, ItemTypeError):
# ImportError:
Expand All @@ -58,8 +58,8 @@ def item_to_object(item: Item) -> Any:
return item.series
elif isinstance(item, SklearnBaseEstimatorItem):
return item.estimator
elif isinstance(item, CrossValidationItem):
return item.cv_results_serialized
elif isinstance(item, CrossValidationReporterItem):
return item.reporter
elif isinstance(item, MediaItem):
return item.media_bytes
elif isinstance(item, PickleItem):
Expand All @@ -69,7 +69,7 @@ def item_to_object(item: Item) -> Any:


__all__ = [
"CrossValidationItem",
"CrossValidationReporterItem",
"Item",
"MediaItem",
"NumpyArrayItem",
Expand Down

0 comments on commit c4b2ee8

Please sign in to comment.