Coder Social home page Coder Social logo

makavelj / cla Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 5.46 MB

Implementation of Compression and Learning Algorithms

Home Page: https://janoschruff.wordpress.com/

Python 100.00%
machine-learning compression burrows-wheeler-transform principal-component-analysis decision-trees entropy lzw-algorithm vector-quantization clustering-algorithm python random-forest bootstrap bagged-trees huffman-coding shannon-fano-algorithm bzip2 pattern-recognition learning-algorithms lz77 boosting

cla's Introduction

CLA

Compression and Learning Algorithms offers compression and learning algorithms. The implementation is mainly suitable for ilustrative purposes of the interconection of the two topics. The source code offers the following:

  1. For Entropy type compression:
    • includes Huffman encoding scheme for binary coding
    • includes Shannon-Fano-Elias coding
  2. For Dictionary type compression:
    • includes plain LZ77 encoding
    • includes LZW coding based on LZ78
  3. For Transforms:
    • includes plain Burrows Wheeler Transform
    • includes bijective Burrows Wheeler Transform based on Lyndon Words
    • includes Move-To-Front encoding
  4. For Pattern Recognition:
    • includes Decision Tree based on entropy of information
    • includes Vector Quantization based on K-Means
    • includes Principal Component Analysis based on Eigenvectors and Eigenvalues
    • includes Boosting based on Decision Tree stumps
    • includes Random Forest and Bagged Trees based on Decision Trees

To get started have a look at the test files to see how to use compression and pattern recognition.

cla's People

Contributors

makavelj avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

simrit1 dasprosad

cla's Issues

Testing LZ77 string index out of range

Sometimes the test for LZ77 fails with the error message:

File "test_lempelziv.py", line 25, in
test_77(string)
File "test_lempelziv.py", line 17, in test_77
enc = lz.lz77_encoding(string)
File "/home/janosch/Compression/compress/lz778.py", line 24, in lz77_encoding
pattern += omega[i]
IndexError: string index out of range

Needs to check for which strings the index goes out of range.

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.