Skip to content

Commit

Permalink
Added combine_discovery_validation() tests (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
wleoncio committed Jan 14, 2025
1 parent 0061c99 commit 2ff0e2d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,13 @@ def test_fit_line():
assert math.isclose(
fit_disc.loc[line, 'CI'].values[0], 0.0000193, rel_tol=1e-2
)

all_pat = pipeline.combine_discovery_validation(
disc_data_shap, valid_data_shap, fit_disc, fit_valid
)
def test_combine_discovery_validation():
assert 'Feature' in all_pat.columns
assert 'Fraction' in all_pat.columns
assert 'SHAP value' in all_pat.columns
if local:
all_pat.shape == (15888, 3)

0 comments on commit 2ff0e2d

Please sign in to comment.