Skip to content

takyamamoto/SparseCoding-OlshausenField-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sparse Coding (Olshausen & Field, 1996) Model

Sparse Coding (Olshausen & Field, 1996) Model with LCA (locally competitive algorithm) (Rozell et al., Neural Comput. 2008).

Data is from http://www.rctn.org/bruno/sparsenet/.

Requirement

  • Python >= 3.5
  • numpy, matplotlib, scipy, tqdm, sklearn

Usage

  • Run train.py or predictive-coding.ipynb (written in Japanese).
  • ica.py is implementation of ICA and PCA for Natural images.

Results

Loss function

Receptive fields (using soft threshold function)

Receptive fields (using Cauchy threshold function (Mayo et al., 2020))

ICA

PCA

Reference

Releases

No releases published

Packages

No packages published