r - GBM multinomial distribution, how to use predict() to get predicted class? -


i using multinomial distribution gbm package in r. when use predict function, series of values:

5.086328 -4.738346 -8.492738 -5.980720 -4.351102 -4.738044 -3.220387 -4.732654 

but want probability of each class occurring. how recover probabilities? thank you.

take @ ?predict.gbm, you'll see there "type" parameter function. try out predict(<gbm object>, <new data>, type="response").


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -