From b5ff04681c51392e212504b627cba15a20b07feb Mon Sep 17 00:00:00 2001 From: Erik Sverdrup Date: Sun, 22 Sep 2024 17:05:35 +1000 Subject: [PATCH] Relax a CSF test tolerance (#1448) --- r-package/grf/tests/testthat/test_causal_survival_forest.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r-package/grf/tests/testthat/test_causal_survival_forest.R b/r-package/grf/tests/testthat/test_causal_survival_forest.R index c601a7b06..299a97691 100644 --- a/r-package/grf/tests/testthat/test_causal_survival_forest.R +++ b/r-package/grf/tests/testthat/test_causal_survival_forest.R @@ -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)