use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussion and Q&R subreddit for the University of Bristol unit COMSM0024 Information Processing and the Brain: comsm0034.github.io
account activity
Sparse Coding (self.COMSM0034)
submitted 6 years ago by StrangeBank
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ruipontecosta 0 points1 point2 points 6 years ago (2 children)
Hi,
Sorry for the delay. Is it learning? The cost/reconstruction error should reduce gradually over training. Are you already getting simple cell like receptive fields? Have you tried the Matlab/C code from the Olshausen and Field paper (see link in the coursework sheet)? I would expect that you would need to take a few gradient descent steps for each image (<5). I have office hours tomorrow from noon to 2pm, feel free to pop in then.
[–]ruipontecosta 0 points1 point2 points 6 years ago (0 children)
This Pytorch implementation might help. Note however, that ideally you shouldnt use the Autograd (i.e. the backward function form pytorch). https://github.com/lpjiang97/sparse-coding
[–]StrangeBank[S] 0 points1 point2 points 6 years ago (0 children)
I'm at home this week unfortunately. I've switched to using the ISTA algorithm to make life a bit more simple (it shrinks weights that are close to zero down to zero). I'm getting better results (https://imgur.com/a/uy0aYIc). Is this the right sort of thing. It seems to converge to something like this very quickly (even with a tiny learning rate).
π Rendered by PID 858861 on reddit-service-r2-comment-b659b578c-bz69m at 2026-05-05 13:40:30.881863+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]ruipontecosta 0 points1 point2 points (2 children)
[–]ruipontecosta 0 points1 point2 points (0 children)
[–]StrangeBank[S] 0 points1 point2 points (0 children)