Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
from skore_hub_project.artefact import CrossValidationReportArtefact
from skore_hub_project.media import (
EstimatorHtmlRepr,
PrecisionRecallTest,
PrecisionRecallTrain,
PredictionErrorTest,
PredictionErrorTrain,
RocTest,
RocTrain,
)
from skore_hub_project.media.media import Media
from skore_hub_project.metric import (
Expand Down Expand Up @@ -129,18 +123,7 @@ class CrossValidationReportPayload(ReportPayload):
PredictTimeTrainStd,
),
)
MEDIAS: ClassVar[tuple[Media, ...]] = cast(
tuple[Media, ...],
(
EstimatorHtmlRepr,
PrecisionRecallTest,
PrecisionRecallTrain,
PredictionErrorTest,
PredictionErrorTrain,
RocTest,
RocTrain,
),
)
MEDIAS: ClassVar[tuple[Media, ...]] = cast(tuple[Media, ...], (EstimatorHtmlRepr,))

report: CrossValidationReport = Field(repr=False, exclude=True)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
from skore_hub_project.artefact.serializer import Serializer
from skore_hub_project.media import (
EstimatorHtmlRepr,
PrecisionRecallTest,
PrecisionRecallTrain,
RocTest,
RocTrain,
)
from skore_hub_project.metric import (
AccuracyTestMean,
Expand Down Expand Up @@ -202,13 +198,7 @@ def test_metrics(self, payload):
]

def test_related_items(self, payload):
assert list(map(type, payload.related_items)) == [
EstimatorHtmlRepr,
PrecisionRecallTest,
PrecisionRecallTrain,
RocTest,
RocTrain,
]
assert list(map(type, payload.related_items)) == [EstimatorHtmlRepr]

@mark.usefixtures("monkeypatch_routes")
def test_model_dump(self, small_cv_binary_classification, payload):
Expand Down
Loading