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

Memory Implementation using SVD #13

Open
MichaelOVertolli opened this issue Feb 11, 2015 · 4 comments
Open

Memory Implementation using SVD #13

MichaelOVertolli opened this issue Feb 11, 2015 · 4 comments
Assignees

Comments

@MichaelOVertolli
Copy link
Contributor

This is the memory task where a vector is multiplied by the weight matrix of base components for a set of images and the image intensity vector is output as a result

@cmekik
Copy link
Contributor

cmekik commented Feb 11, 2015

using tags... fancy.

@cmekik cmekik added this to the Image Retrieval milestone Feb 11, 2015
@cmekik
Copy link
Contributor

cmekik commented Feb 11, 2015

@MichaelOVertolli I am actually working on a utils function that has the following signature:

SVD_compress(source, to_compress) -> compressed

where source, is a matrix which will be used in determining the SVD compression, to_compress is a list of matrices to be compressed with the SVD compression resulting from taking the SVD of source.

So if you want to do SVD compression the way we were doing it in the old models you would write

cpd_stimulus, cpd_encs, cpd_eval_pts = SVD_compress(encs, [stimulus, encs, eval_pts])

I think it will be useful to you.

@MichaelOVertolli
Copy link
Contributor Author

You're going to have to explain this more. Also, I found some neat tricks in "Programming Computer Vision in Python" (p. 27) that speed up the algorithm if the dimensionality is high (e.g., using the covariance matrix of XX^T).

@cmekik
Copy link
Contributor

cmekik commented Mar 14, 2015

It is already written and should be in utils.init. It's called SVDcompressor and is actually a class. Check the documentation, if anything is mysterious. I'd also be glad to help, if things still aren't clear.

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