We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8df5a52 commit 2f3b8c1Copy full SHA for 2f3b8c1
r-package/grf/tests/testthat/test_lm_forest.R
@@ -55,7 +55,7 @@ test_that("lm_forest gradient.weights option works as expected", {
55
K <- 2
56
X <- matrix(rnorm(n * p), n, p)
57
W <- matrix(runif(n * K), n, K)
58
- Y <- X[, 1] - W[, 1] * pmax(X[, 2], 0) + W[, 2] + rnorm(n)
+ Y <- X[, 1] - W[, 1] * pmax(X[, 1], 0) + W[, 2] + rnorm(n)
59
60
lmf <- lm_forest(X, Y, W, num.trees = 250, gradient.weights = c(0.5, 1), seed = 42)
61
lmf2 <- lm_forest(X, cbind(Y, Y), W, num.trees = 250, gradient.weights = c(0.5, 1), seed = 42)
0 commit comments