Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variational Logistic Regression is too slow! #6

Closed
AlexYurasov opened this issue Feb 11, 2016 · 2 comments
Closed

Variational Logistic Regression is too slow! #6

AlexYurasov opened this issue Feb 11, 2016 · 2 comments

Comments

@AlexYurasov
Copy link

I was comparing Variational Logistic Regression and Relevance Vector Classifier, and though RVC seems to be more complicated model it is much faster to fit than Variational Bayesian Logistic Regression? Is there any implementation problems?

@AmazaspShumik
Copy link
Owner

Hi, there are couple of things here:

  1. Relevance Vector Classifier uses Laplace approximation which is much faster than Local Variational Approximation used in Variational Logistic Regression (however it is less accurate at the same time).
    Main difference (except ARD prior) is that Variational Logistic Regression needs to optimize latent local variational parameter for EACH OBSERVATION, so obviously it should slow for large datasets.
    As a general advice it is better to use Laplace approximation in case you have large number of samples,
    for smaller datasets it is preferable to use Local Variational Approximation.

  2. You are still right VLR is very slow for high dimensional inputs. I updated code, now instead of using
    pseudo inverse I use cholesky decomposition, this allows to avoid costly dot products and makes code a bit faster.

If you think there are other places for improvement let me know!

@AlexYurasov
Copy link
Author

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants