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 @@ -18,7 +18,7 @@ def compute_breakdown(
metadata,
prediction_column_name,
minority_class_label,
classifier='xgboost',
classifier='XGBoost',
fixed_recall_value=0.9,
):
"""Compute the score breakdown of the metric."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def test_end_to_end(self):
metadata=metadata,
prediction_column_name='gender',
minority_class_label='F',
classifier='XGBoost',
fixed_recall_value=0.8,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def test_end_to_end(self):
metadata=metadata,
prediction_column_name='gender',
minority_class_label='F',
classifier='XGBoost',
fixed_precision_value=0.8,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def test_compute_breakdown(self, mock_compute_breakdown):
metadata = {}
prediction_column_name = 'prediction_column_name'
minority_class_label = 'minority_class_label'
classifier = 'XGBoost'
fixed_recall_value = 0.8

# Run
BinaryClassifierPrecisionEfficacy.compute_breakdown(
Expand All @@ -43,8 +41,6 @@ def test_compute_breakdown(self, mock_compute_breakdown):
metadata=metadata,
prediction_column_name=prediction_column_name,
minority_class_label=minority_class_label,
classifier=classifier,
fixed_recall_value=fixed_recall_value,
)

# Assert
Expand All @@ -55,8 +51,8 @@ def test_compute_breakdown(self, mock_compute_breakdown):
metadata,
prediction_column_name,
minority_class_label,
classifier,
fixed_recall_value,
'XGBoost',
0.9,
)

@patch('sdmetrics.single_table.data_augmentation.base.BaseDataAugmentationMetric.compute')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def test_compute_breakdown(self, mock_compute_breakdown):
metadata = {}
prediction_column_name = 'prediction_column_name'
minority_class_label = 'minority_class_label'
classifier = 'XGBoost'
fixed_precision_value = 0.8

# Run
BinaryClassifierRecallEfficacy.compute_breakdown(
Expand All @@ -43,8 +41,6 @@ def test_compute_breakdown(self, mock_compute_breakdown):
metadata=metadata,
prediction_column_name=prediction_column_name,
minority_class_label=minority_class_label,
classifier=classifier,
fixed_precision_value=fixed_precision_value,
)

# Assert
Expand All @@ -55,8 +51,8 @@ def test_compute_breakdown(self, mock_compute_breakdown):
metadata,
prediction_column_name,
minority_class_label,
classifier,
fixed_precision_value,
'XGBoost',
0.9,
)

@patch('sdmetrics.single_table.data_augmentation.base.BaseDataAugmentationMetric.compute')
Expand Down
Loading