Skip to content

Commit

Permalink
Merge performance report, Class Performance Imbalance and Train test …
Browse files Browse the repository at this point in the history
…Overfit into one check (#364)

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0

* v0
  • Loading branch information
JKL98ISR committed Jan 2, 2022
1 parent e537e01 commit a18fc89
Show file tree
Hide file tree
Showing 20 changed files with 3,728 additions and 3,691 deletions.
2 changes: 1 addition & 1 deletion deepchecks/base/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ def classes(self) -> t.List[str]:
Sorted classes
"""
if self.label_col is not None:
return sorted(self.label_col.unique().tolist())
return sorted(self.label_col.dropna().unique().tolist())
return []

@property
Expand Down
4 changes: 0 additions & 4 deletions deepchecks/checks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
)

from .methodology import (
TrainTestDifferenceOverfit,
BoostingOverfit,
UnusedFeatures,
SingleFeatureContribution,
Expand Down Expand Up @@ -60,7 +59,6 @@
SegmentPerformance,
RegressionSystematicError,
RegressionErrorDistribution,
ClassPerformance,
MultiModelPerformanceReport,
ModelErrorAnalysis
)
Expand All @@ -82,7 +80,6 @@
'LabelAmbiguity',

# methodology checks
'TrainTestDifferenceOverfit',
'BoostingOverfit',
'UnusedFeatures',
'SingleFeatureContribution',
Expand Down Expand Up @@ -114,7 +111,6 @@
'SegmentPerformance',
'RegressionSystematicError',
'RegressionErrorDistribution',
'ClassPerformance',
'MultiModelPerformanceReport',
'ModelErrorAnalysis'
]
2 changes: 0 additions & 2 deletions deepchecks/checks/methodology/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# ----------------------------------------------------------------------------
#
"""Module contains checks for methodological flaws in the model building process."""
from .performance_overfit import TrainTestDifferenceOverfit
from .boosting_overfit import BoostingOverfit
from .unused_features import UnusedFeatures
from .single_feature_contribution import SingleFeatureContribution
Expand All @@ -24,7 +23,6 @@


__all__ = [
'TrainTestDifferenceOverfit',
'BoostingOverfit',
'UnusedFeatures',
'SingleFeatureContribution',
Expand Down
169 changes: 0 additions & 169 deletions deepchecks/checks/methodology/performance_overfit.py

This file was deleted.

2 changes: 0 additions & 2 deletions deepchecks/checks/performance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from .segment_performance import SegmentPerformance
from .regression_systematic_error import RegressionSystematicError
from .regression_error_distribution import RegressionErrorDistribution
from .class_performance import ClassPerformance
from .model_error_analysis import ModelErrorAnalysis


Expand All @@ -30,7 +29,6 @@
'SegmentPerformance',
'RegressionSystematicError',
'RegressionErrorDistribution',
'ClassPerformance',
'MultiModelPerformanceReport',
'ModelErrorAnalysis'
]
2 changes: 1 addition & 1 deletion deepchecks/checks/performance/calibration_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _calibration_score(self, dataset: Dataset, model):
name=f'{class_name} (brier:{briers_scores[class_name]:9.4f})',
))

fig.update_layout(title_text='Calibration plots (reliability curve)',
fig.update_layout(title_text='Calibration plots (reliability curve)',
width=700, height=500)
fig.update_yaxes(title='Fraction of positives')
fig.update_xaxes(title='Mean predicted value')
Expand Down

0 comments on commit a18fc89

Please sign in to comment.