Skip to content

Commit 2f3b8c1

Browse files
authored
Update test_lm_forest.R (#1460)
1 parent 8df5a52 commit 2f3b8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

r-package/grf/tests/testthat/test_lm_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test_that("lm_forest gradient.weights option works as expected", {
5555
K <- 2
5656
X <- matrix(rnorm(n * p), n, p)
5757
W <- matrix(runif(n * K), n, K)
58-
Y <- X[, 1] - W[, 1] * pmax(X[, 2], 0) + W[, 2] + rnorm(n)
58+
Y <- X[, 1] - W[, 1] * pmax(X[, 1], 0) + W[, 2] + rnorm(n)
5959

6060
lmf <- lm_forest(X, Y, W, num.trees = 250, gradient.weights = c(0.5, 1), seed = 42)
6161
lmf2 <- lm_forest(X, cbind(Y, Y), W, num.trees = 250, gradient.weights = c(0.5, 1), seed = 42)

0 commit comments

Comments
 (0)