scikit-rvm icon indicating copy to clipboard operation
scikit-rvm copied to clipboard

Getting the confidence of the prediction?

Open jandono opened this issue 7 years ago • 7 comments

Hello James,

when using Relevance Vector Regression, is it possible to somehow get the confidence of the predictions? For example lets say that my regression model outputs some predictions, what I want to know is how sure my regression model is that those predictions are true.

Kind regards, ac1dxtrem

jandono avatar Oct 27 '16 16:10 jandono

I too am interested in this issue, I noticed you have a predict_proba function but I'm unsure how to use it.

Blair-Young avatar Dec 13 '16 11:12 Blair-Young

Hello guys,

I have the same problem with the prediction of probabilities. Could you guys solve your problem?

Thanks!

stbedoya avatar Jan 06 '17 14:01 stbedoya

me too

Sandy4321 avatar Oct 17 '17 16:10 Sandy4321

Correct if I am wrong but , the mean and standard deviation can be extracted using instance_variable.sigma_ and instance_variable.m_ , isnt it ?

Spandyie avatar Mar 05 '18 00:03 Spandyie

m_ and sigma_ are parameters of the weights, not the prediction.

I think if you call predict on the regression class with eval_MSE=True you'll get the standard deviation returned along with the mean as a tuple. I copied this convention from scikit-learn, but they've since changed it to return_std, which makes more sense. If I can get around to fixing up this package I'll check it and change it.

JamesRitchie avatar Mar 05 '18 14:03 JamesRitchie

And what is about returning probability for confidence?

Sandy4321 avatar Dec 03 '19 14:12 Sandy4321

For your information, there is another package for RVM, following scikit-learn conventions as well:

https://github.com/Mind-the-Pineapple/sklearn-rvm

You can see that return_std is accepted:

plot

Reference: https://sklearn-rvm.readthedocs.io/en/latest/auto_examples/plot_compare_rvr_svr.html

woctezuma avatar Mar 09 '20 11:03 woctezuma