# NOT RUN {
# }
# NOT RUN {
library(party)
library(gbm)
gbm=gbm(score ~ ., data = readingSkills, n.trees=50, shrinkage=0.05, interaction.depth=5,
bag.fraction = 0.5, train.fraction = 0.5, n.minobsinnode = 1,
cv.folds = 0, keep.data=F, verbose=F)
apply(ipmgbmnew(gbm,readingSkills[,-4],50),FUN=mean,2)->gbm_ipm
gbm_ipm
# }
Run the code above in your browser using DataLab