Skip to content

Commit ab051fc

Browse files
committed
small changes to chap 6 for agtboost manuscript
1 parent 8b038ca commit ab051fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

article-supplementary-material/lunde2020agtboost/Chapter 6/C6_All-results.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ p_nleaves_vanilla <- df_nleaves[ind_vanilla,] %>%
172172
ylab("Number of leaves") +
173173
xlab("Boosting iteration") +
174174
ggtitle("Method: Vanilla") +
175-
scale_x_continuous(trans='log2', breaks=2^seq(2,10,2)) +
175+
scale_x_continuous(trans='log2', breaks=2^seq(0,10,2)) +
176176
scale_y_continuous(trans='log2', limits=c(2, y_axis_max)) +
177177
scale_color_manual(values=cbp2[4:1], breaks = c("100", "1000", "10000", "100000")) +
178178
theme(#legend.position=c(1,1),legend.justification=c(1,1),
@@ -195,7 +195,7 @@ p_nleaves_gsub <- df_nleaves[ind_gsub,] %>%
195195
ylab("Number of leaves") +
196196
xlab("Boosting iteration") +
197197
ggtitle("Method: Global-subset") +
198-
scale_x_continuous(trans='log2', breaks=2^seq(2,10,2)) +
198+
scale_x_continuous(trans='log2', breaks=2^seq(0,10,2)) +
199199
scale_y_continuous(trans='log2', limits=c(2, y_axis_max)) +
200200
scale_color_manual(values=cbp2[4:1], breaks = c("100", "1000", "10000", "100000")) +
201201
theme(#legend.position=c(1,1),legend.justification=c(1,1),
@@ -238,10 +238,10 @@ df_convergence$model[df_convergence$model == "gsub1e+05"] = "global-subset-10000
238238
p_convergence <- df_convergence %>%
239239
ggplot(aes(x=iteration, y=loss, group=model)) +
240240
#geom_point() +
241-
geom_line(aes(linetype=model, colour=model), size=1) +
241+
geom_line(aes(linetype=model, colour=model), size=0.8) +
242242
ylab("Test loss") +
243243
xlab("Boosting iteration") +
244-
scale_x_continuous(trans='log2', breaks=2^seq(2,10,2)) +
244+
scale_x_continuous(trans='log2', breaks=2^seq(0,10,2)) +
245245
theme_bw() +
246246
scale_color_manual(values=col_conv) +
247247
scale_linetype_manual(values=ltype_conv) +

0 commit comments

Comments
 (0)