Skip to content

Commit

Permalink
Update test_end_to_end.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufuyanik1 committed Dec 15, 2023
1 parent b56e4a2 commit 44c88fc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions python/tests/test_end_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_end_to_end():
}
assert set(datamart.modelData.columns) == modelcols

assert datamart.predictorData.shape == (70735, 18)
assert datamart.predictorData.shape == (70735, 19)
predcols = {
"ModelID",
"Positives",
Expand All @@ -64,17 +64,18 @@ def test_end_to_end():
"BinPropensity",
"BinAdjustedPropensity",
"Contents",
"PredictorCategory"
"PredictorCategory",
"GroupIndex"
}
assert set(datamart.predictorData.columns) == predcols

assert datamart.combinedData.shape == (4576, 32)
assert datamart.combinedData.shape == (4576, 33)
assert set(datamart.combinedData.columns) == modelcols.union(predcols).union(
{"PerformanceBin", "PositivesBin", "ResponseCountBin", "SnapshotTimeBin"}
)

assert datamart.last().shape == (68, 15)
assert datamart.last("predictorData").shape == (4576, 18)
assert datamart.last("predictorData").shape == (4576, 19)
assert datamart.modelData.schema["SnapshotTime"] == pl.Datetime

assert datamart.context_keys == ["Channel", "Direction", "Issue", "Group"]
Expand All @@ -89,6 +90,7 @@ def test_end_to_end():
"EntryType",
"BinNegatives",
"Contents",
"GroupIndex"
}

assert datamart.missing_preds == {
Expand Down Expand Up @@ -132,6 +134,7 @@ def test_end_to_end():
"BinResponseCount",
"PredictorName",
"Contents",
"GroupIndex"
}

assert isinstance(datamart.plotPerformanceSuccessRateBubbleChart(), Figure)
Expand Down

0 comments on commit 44c88fc

Please sign in to comment.