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

后端 未结 2 1075
暖寄归人
暖寄归人 2021-01-12 03:21

I am using the multinomial distribution from the gbm package in R. When I use the predict function, I get a series of values:

5.0         


        
2条回答
  •  南方客
    南方客 (楼主)
    2021-01-12 04:08

    Take a look at ?predict.gbm, you'll see that there is a "type" parameter to the function. Try out predict(, , type="response").

提交回复
热议问题