predict_proba and probA_ / probB_ do not match in SVC #19588
Replies: 2 comments
|
Not a probability calibration expert but my understanding by browsing the references below is that it seems like a genuine problem indeed. I will try to take a closer look, but for now I ran out of steam in the
|
|
I think the missing detail is that the
So this: 1 / (1 + np.exp(
model.decision_function(X) * model.probA_[0] + model.probB_[0]
))doesn't exactly reproduce Therefore, there isn't simply a missing In short: the formula is correct, but |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
According to the sklearn Help page:
now, if I try a simple SVC example
If I use predict_proba to get all probabilities, this leads to
while using the formula from above leads to a different result
What am I missing here? How does the formular need to be changed to make the results match with predict_proba?
Thanks for your help!
All reactions