Skip to content

Commit

Permalink
Relax a CSF test tolerance (#1448)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikcs authored Sep 22, 2024
1 parent 5a2fbcd commit b5ff046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r-package/grf/tests/testthat/test_causal_survival_forest.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ test_that("causal survival forest variance estimates are decent", {
cs.pred <- predict(cs.forest, estimate.variance = TRUE)
z.score.oob <- abs(cs.pred$predictions - true.effect) / sqrt(cs.pred$variance.estimates)
cate.coverage.oob <- mean(z.score.oob <= 1.96)
expect_gte(cate.coverage.oob, 0.7)
expect_gte(cate.coverage.oob, 0.65)

X.test <- matrix(0.5, 10, p)
X.test[, 1] <- seq(0, 1, length.out = 10)
Expand Down

0 comments on commit b5ff046

Please sign in to comment.