Giter Site home page Giter Site logo

itwist2020-codes's Introduction

Codes for the talk ``Nonnegative and Low-Rank Approximations''

These codes can be used to reproduce the experiments on the talk ``Nonnegative and Low-Rank Approximations'', provided in this repo as well.

Requirements:

  • numpy
  • scikit-learn
  • nn_fac (version 0.1.2 and more)
  • matplotlib
  • scipy

Install by running pip install --user -r requirements.txt or any other similar command you like.

Description of the files

  • fluorescence.py: use Nonnegative Tensor Factorization to find hidden chemical spectra and relative concentrations. Data is a courtesy of Rasmus Bro, check http://www.models.life.ku.dk/Amino_Acid_fluo and credit ``Bro, R, PARAFAC: Tutorial and applications, Chemometrics and Intelligent Laboratory Systems, 1997, 38, 149-171'' for any external use.
  • text_mining.py: have fun exploring the content of text files of your choice with Nonnegative Matrix Factorization. Put .txt files in the ./textes folders with various topics and watch how NMF recovers topics and text clusters!
  • transcription.py: a toy example of automatic transcription from audio to a tentative collection of notes and activations, using NMF. It does not work tremendously well, but you can try with your own audio file and see how it goes!
  • homer_2color.py: recolor a homer picture with 2 colors of your choice, using Nonnegative Least Squares.
  • honer_ncolor.py: recolor a homer picture with more colors (here 5) again with nnls, and showing sparsity levels.
  • homer_nmf: Computing a rank-2 version of a homer image with given colors, and then trying to find thoses colors from the image only using exact rank2 NMF.

itwist2020-codes's People

Watchers

Andra B. 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.