-
Notifications
You must be signed in to change notification settings - Fork 45
Description
Thanks a lot for your code! It helped me a lot.
In the implementation of this roc comparison, I ran into a problems:
You see, I calculated y_prob_xgboost and y_prob_simple from previous model. Those two are of probabilities between 0-1. The y_test represent the true result.
In the code below, I used the function you kindly provided in the compare_auc_delong_xu module:
delongcov=compare_auc_delong_xu.delong_roc_test(y_test,y_prob_xgboost,y_prob_simple) print(delongcov)
However, I get a result of
[[-15.40781058]]
It did not make sense since I read some of the functions. I believe the function of "calc_pvalue" is to calculate to p value, which mean it is >0 instead of a negative one. By the way, I did not run into any error information during run it. IT MEANS THAT MY PROBLEM MAY NOT BE THE ERROR YOU ASSERTED.
Would you please tell me how it may be caused? Thanks a lot!