Skip to content

Commit c75ba59

Browse files
committed
fix plots in factorize tests
1 parent 5b1f894 commit c75ba59

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/factorize_test_irregular.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ cols <- c("cornflowerblue", "darkseagreen", "darkred")
9393
opar <- par(mfrow = c(3,2))
9494
wch <- c(1,2,10)
9595
for(w in 1:length(wch)) {
96-
plot(fac$resp, which = wch[w], col = "darkgrey", ask = FALSE,
96+
plot.mboost(fac$resp, which = wch[w], col = "darkgrey", ask = FALSE,
9797
main = names(fac$resp$baselearner[wch[w]]))
9898
lines(sort(t), ft[[w]][order(t)]*max(d), col = cols[w], lty = 2)
9999
plot(fac$cov, which = wch[w],
@@ -158,7 +158,7 @@ ratio <- -max(abs(predict(fac$resp, which = 1))) / max(abs(predict(fac2$resp, wh
158158
opar <- par(mfrow = c(3,2))
159159
wch <- c(1,2,10)
160160
for(w in 1:length(wch)) {
161-
plot(fac$resp, which = wch[w], col = "darkgrey", ask = FALSE,
161+
plot.mboost(fac$resp, which = wch[w], col = "darkgrey", ask = FALSE,
162162
main = names(fac$resp$baselearner[wch[w]]))
163163

164164
lines(sort(griddata$t),

tests/factorize_test_regular.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ cols <- c("cornflowerblue", "darkseagreen", "darkred")
7676
opar <- par(mfrow = c(3,2))
7777
wch <- c(1,2,10)
7878
for(w in 1:length(wch)) {
79-
plot(fac$resp, which = wch[w], col = "darkgrey", ask = FALSE,
79+
plot.mboost(fac$resp, which = wch[w], col = "darkgrey", ask = FALSE,
8080
main = names(fac$resp$baselearner[wch[w]]))
8181
lines(t, ft[[w]]*max(d), col = cols[w], lty = 2)
8282
plot(fac$cov, which = wch[w],

0 commit comments

Comments
 (0)