|
Following Online Dictionary Learning for Sparse Coding and using an inference function I've found on the Stanford's website, I'm trying to online learn a Dictionary matrix. Tested both on resized actual images and some revised version of MNIST, I see that I do manage to get something to happen, but the results just doesn't look anything like real feature detectors. The way I train is by taking an image, lets say 500500, then go through all 1515 patches (1px progress each iteration), do the inference and the dicotionary optimization. The main file:
The dictUpdate function:
Another thing, if i'm already asking here, I'd like to do the inference myself and have found a vectorised version for it, but every time I test it it simply explodes:
And the Shrink:
Thanks for the answers |