Skip to content

Commit

Permalink
feat(cross-validation reporter): Remove timing_normalized plot
Browse files Browse the repository at this point in the history
Closes #1043
  • Loading branch information
auguste-probabl committed Jan 8, 2025
1 parent fb95c2e commit cbf30d2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 142 deletions.
3 changes: 0 additions & 3 deletions examples/getting_started/plot_quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
# %%
reporter.plots.scores

# %%
reporter.plots.timing_normalized

# %%
# Finally, from your shell (in the same directory), start the UI:
#
Expand Down
1 change: 0 additions & 1 deletion skore/src/skore/item/cross_validation_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ def factory(cls, reporter: CrossValidationReporter) -> CrossValidationItem:
humanized_plot_names = {
"scores": "Scores",
"timing": "Timings",
"timing_normalized": "Normalized timings",
}
plots_bytes = {
humanized_plot_names[plot_name]: (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
_strip_cv_results_scores,
)
from .plots.compare_scores_plot import plot_cross_validation_compare_scores
from .plots.timing_normalized_plot import plot_cross_validation_timing_normalized
from .plots.timing_plot import plot_cross_validation_timing


Expand All @@ -26,7 +25,6 @@ class CrossValidationPlots:

scores: plotly.graph_objects.Figure
timing: plotly.graph_objects.Figure
timing_normalized: plotly.graph_objects.Figure


class CrossValidationReporter:
Expand Down Expand Up @@ -189,5 +187,4 @@ def plots(self) -> CrossValidationPlots:
return CrossValidationPlots(
scores=plot_cross_validation_compare_scores(self._cv_results),
timing=plot_cross_validation_timing(self._cv_results),
timing_normalized=plot_cross_validation_timing_normalized(self._cv_results),
)

This file was deleted.

2 changes: 0 additions & 2 deletions skore/tests/unit/item/test_cross_validation_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class FakeCrossValidationReporter(CrossValidationReporter):
plots = CrossValidationPlots(
scores=plotly.graph_objects.Figure(),
timing=plotly.graph_objects.Figure(),
timing_normalized=plotly.graph_objects.Figure(),
)
cv = StratifiedKFold(n_splits=5)

Expand All @@ -59,7 +58,6 @@ class FakeCrossValidationReporterNoGetParams(CrossValidationReporter):
plots = CrossValidationPlots(
scores=plotly.graph_objects.Figure(),
timing=plotly.graph_objects.Figure(),
timing_normalized=plotly.graph_objects.Figure(),
)
cv = StratifiedKFold(n_splits=5)

Expand Down

0 comments on commit cbf30d2

Please sign in to comment.