项目作者: sbrodeur

项目描述 :
Hierarchical sparse coding using greedy matching pursuit.
高级语言: Python
项目地址: git://github.com/sbrodeur/hierarchical-sparse-coding.git
创建时间: 2016-12-30T14:46:54Z
项目社区:https://github.com/sbrodeur/hierarchical-sparse-coding

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Hierarchical sparse coding (HSC)

Hierarchical sparse coding using greedy matching pursuit.

alt tag

S. Brodeur and J. Rouat, “Optimality of inference in distributed hierarchical coding for object-based representations,” in 15th Canadian Workshop on Information Theory (CWIT), 2017.

Dependencies

Main requirements:

  • Python 2.7 with Numpy, Scipy and Matplotlib

Installing the library

Download the source code from the git repository:

  1. mkdir -p $HOME/work
  2. cd $HOME/work
  3. git clone https://github.com/sbrodeur/hierarchical-sparse-coding.git

Note that the library must be in the PYTHONPATH environment variable for Python to be able to find it:

  1. export PYTHONPATH=$HOME/work/hierarchical-sparse-coding:$PYTHONPATH

This can also be added at the end of the configuration file $HOME/.bashrc

Running unit tests

To ensure all libraries where correctly installed, it is advised to run the test suite:

  1. cd $HOME/work/hierarchical-sparse-coding/tests
  2. ./run_tests.sh

Note that this can take some time.

Running experiments

To reproduce the experiments of the paper:

  1. cd $HOME/work/hierarchical-sparse-coding/scripts
  2. ./run_experiments.sh

Note that this can take some time.

Citation

Please cite Hierarchical sparse coding (HSC) algorithm in publications when used:

S. Brodeur and J. Rouat, “Optimality of inference in distributed hierarchical coding for object-based representations,” in 15th Canadian Workshop on Information Theory (CWIT), 2017.

BibTeX entry for LaTeX:

  1. @INPROCEEDINGS{Brod1706:Optimality,
  2. AUTHOR="Simon Brodeur and Jean Rouat",
  3. TITLE="Optimality of inference in distributed hierarchical coding for object-based
  4. representations",
  5. BOOKTITLE="15th Canadian Workshop on Information Theory (CWIT)",
  6. ADDRESS="Quebec city, Canada",
  7. DAYS=11,
  8. MONTH=jun,
  9. YEAR=2017,
  10. KEYWORDS="Unsupervised learning; Data compression; Inference mechanisms; Greedy
  11. algorithms; Sparse matrices",
  12. ABSTRACT="Hierarchical approaches for representation learning have the ability to
  13. encode relevant features at multiple scales or levels of abstraction.
  14. However, most hierarchical approaches exploit only the last level in the
  15. hierarchy, or provide a multiscale representation that holds a significant
  16. amount of redundancy. We argue that removing redundancy across the multiple
  17. levels of abstraction is important for an efficient representation of
  18. compositionality in object-based representations. With the perspective of
  19. feature learning as a data compression operation, we propose a new greedy
  20. inference algorithm for hierarchical sparse coding. Convolutional matching
  21. pursuit with a L0-norm constraint was used to encode the input signal in a
  22. distributed and non-redundant code across levels of the hierarchy. Simple
  23. and complex synthetic datasets of temporal signals were created to evaluate
  24. the encoding efficiency and compare with the theoretical lower bounds on
  25. the information rate for those signals. The algorithm was able to infer
  26. near-optimal distributed code for simple signals. However, it failed for
  27. complex signals with strong overlapping between objects. We explain the
  28. inefficiency of convolutional matching pursuit that occurred in such case.
  29. This brings new insights about the NP-hard optimization problem related to
  30. using L0-norm constraint in inferring optimally distributed and compact
  31. object-based representations."
  32. }