How to obtain a confidence interval or a measure of prediction dispersion when using xgboost for classification?

半腔热情 提交于 2019-12-06 06:36:23

问题


How to obtain a confidence interval or a measure of prediction dispersion when using xgboost for classification?

So for example, if xgboost predicts a probability of an event is 0.9, how can the confidence in that probability be obtained?

Also is this confidence assumed to be heteroskedastic?


回答1:


To produce confidence intervals for xgboost model you should train several models (you can use bagging for this). Each model will produce a response for test sample - all responses will form a distribution from which you can easily compute confidence intervals using basic statistics. You should produce response distribution for each test sample.



来源:https://stackoverflow.com/questions/37418938/how-to-obtain-a-confidence-interval-or-a-measure-of-prediction-dispersion-when-u

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!