GithubHelp home page GithubHelp logo

danielquintao / haar-scattering-transform-in-python Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 63 KB

A non-official implementation of "Unsupervised Deep Haar Scattering on Graphs, Chen X., Cheng X., Mallat S. 2014"

Python 100.00%

haar-scattering-transform-in-python's Introduction

Haar Scattering Transform in Python

A non-official implementation of "Unsupervised Deep Haar Scattering on Graphs, Chen X., Cheng X., Mallat S. 2014"

Data

Please download MNIST and ECG5000 (we need only the two ".txt" files) and paste the files directly inside ./data/.

[MNIST]: Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. "Gradient-based learning applied to document recognition." Proceedings of the IEEE, 86(11):2278-2324, November 1998

[ECG5000]: Yanping Chen, Yuan Hao, Thanawin Rakthanmanon, Jesin Zakaria, Bing Hu, and Eamonn Keogh. 2015. A general framework for never-ending learning from time series streams. Data Min. Knowl. Discov. 29, 6 (November 2015), 1622โ€“1664. https://doi.org/10.1007/s10618-014-0388-4 EXTRACTED FROM ORIGINAL DATA USED IN:

Baim DS, Colucci WS, Monrad ES, Smith HS, Wright RF, Lanoue A, Gauthier DF, Ransil BJ, Grossman W, Braunwald E. Survival of patients with severe congestive heart failure treated with oral milrinone. J American College of Cardiology 1986 Mar; 7(3):661-670.

Code overview

All code files are in ./src/.

Files with "utilities":

  • haar_scattering_transform.py has an implementation of a class that ... computes the Haar Scattering Transform ! It is supposed to be clear from the docstrings, but in summary: we instantiate it with an igraph object representing the structure of the domain where the signal lives (so that the pairings to pass from layer j to layer j+1 are computed during initialization), and it has a method get_haar_scattering_transform that receives a (flattened) signal living in that (graph) domain and computes its scalar or boolean Haar Scattering Transform, depending on the dtype of the input (this is automatically detected).
  • matching.py calls blossalg methods that help us matching "nodes" in the Haar Scattering Transform. The package blossalg goal is to implement the Blossom Algorithm and it is still very young, but it works for this project.
  • unstructured2graphs.py has some utilities to build the domain graph for image grids and periodic time series, and to convert corresponding signals to the right format.
  • read_MNIST.py reads the MNIST that we should be able to find under ./data/.
  • read_ECG5000.py reads the ECG5000 data set we should be able to find under `./data/``.

Illustration files: all the files starting with example[...]

haar-scattering-transform-in-python's People

Contributors

danielquintao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.