Skip to content

Commit

Permalink
Make DeepSHAP tests more stable (#15826)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfryda authored Oct 17, 2023
1 parent 24298f6 commit 29d84fc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void testClassificationCompactSHAP() {
Val val = Rapids.exec("(sumaxis " + contribs._key + " 0 1)");
assertTrue(val instanceof ValFrame);
res = val.getFrame();
assertColsEquals(scored, res, 2, 0, 1e-4);
assertColsEquals(scored, res, 2, 0, 1e-3);
} finally {
fr.delete();
bgFr.delete();
Expand Down Expand Up @@ -109,7 +109,7 @@ public void testClassificationOriginalSHAP() {
Val val = Rapids.exec("(sumaxis " + contribs._key + " 0 1)");
assertTrue(val instanceof ValFrame);
res = val.getFrame();
assertColsEquals(scored, res, 2, 0, 1e-4);
assertColsEquals(scored, res, 2, 0, 1e-3);
} finally {
fr.delete();
bgFr.delete();
Expand Down Expand Up @@ -152,7 +152,7 @@ public void testRegressionCompactSHAP() {
Val val = Rapids.exec("(sumaxis " + contribs._key + " 0 1)");
assertTrue(val instanceof ValFrame);
res = val.getFrame();
assertColsEquals(scored, res, 0, 0, 1e-4);
assertColsEquals(scored, res, 0, 0, 1e-3);
} finally {
fr.delete();
bgFr.delete();
Expand Down Expand Up @@ -194,7 +194,7 @@ public void testRegressionOriginalSHAP() {
Val val = Rapids.exec("(sumaxis " + contribs._key + " 0 1)");
assertTrue(val instanceof ValFrame);
res = val.getFrame();
assertColsEquals(scored, res, 0, 0, 1e-4);
assertColsEquals(scored, res, 0, 0, 1e-3);
} finally {
fr.delete();
bgFr.delete();
Expand Down

0 comments on commit 29d84fc

Please sign in to comment.