How can i see the weights in boosting in R

r
boosting
caret

#1

Hello,

Applying separate weights to records according to whether they have been able to correctly/incorrectly classify is an inherent feature of the boosting algorithm.
Is there a way I can see the weights??
fit.gbm <- train(formula, data=X, method = 'gbm', trControl=fitControl,tuneGrid=Grid,metric='Kappa',maximize=FALSE)
I am using the caret package


#2

Hello

take your fit.gbm$finalmodel and pass it to pretty.gbm.tree() the weight will be on each node.
Hope this help.
Alain