Skip to content

Commit

Permalink
remove fairness_audit documentation and stub, fix refresh on scores, …
Browse files Browse the repository at this point in the history
…remove update to config
  • Loading branch information
gbowlin committed Oct 10, 2024
1 parent afe3db5 commit dc827df
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
1 change: 0 additions & 1 deletion docs/reference/seismometer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ Public API
cohort_evaluation
cohort_comparison_report
cohort_list
fairness_audit
feature_alerts
feature_summary
model_evaluation
Expand Down
4 changes: 0 additions & 4 deletions example-notebooks/binary-classifier/usage_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ data_usage:
# Output should be in the predictions table but target may be a display name of a windowed event
primary_output: LGBM_score
# This list defines available outputs for the model (scores)
outputs:
- LGBM_score
- LGBM_with_noise
- LGBM_with_big_noise
primary_target: Readmitted within 30 Days
# Predict time indicates the column for timestamp associated with the row
predict_time: ScoringTime
Expand Down
8 changes: 0 additions & 8 deletions src/seismometer/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,14 +1541,6 @@ def __init__(self):
super().__init__("Outcome / Intervention Analysis", plot_intervention_outcome_timeseries)


@export
def fairness_audit(metric_list: list[str] = None, fairness_threshold: float = 0.2):
"""
Placeholder function for the fairness audit plot.
"""
pass


export(ExploreFairnessAudit)

# endregion
3 changes: 2 additions & 1 deletion src/seismometer/report/fairness.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def binary_classifier_table_wrapper_function(
pdh.event_score(
sg.data(),
sg.entity_keys,
score=score_column,
score=score,
ref_event=sg.predict_time,
aggregation_method=sg.event_aggregation_method(target_column),
)
Expand Down Expand Up @@ -276,6 +276,7 @@ def __init__(
]
if model_options_widget:
v_children.insert(0, model_options_widget)
self.model_options_widget.observe(self._on_value_changed, names="value")

super().__init__(
children=[
Expand Down

0 comments on commit dc827df

Please sign in to comment.