Giter Site home page Giter Site logo

ayoub-etoullali / svd-singular-value-decomposition Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 5.67 MB

This project demonstrates the application of Singular Value Decomposition (SVD) for image compression using Python and NumPy.

Home Page: https://www.youtube.com/watch?v=emUZuGDkemk

Jupyter Notebook 100.00%
acp machine-learning machine-learning-algorithms machinelearning ml pca statistical-learning statistics svd svd-factorization

svd-singular-value-decomposition's Introduction

Singular Value Decomposition (SVD)

IMG_20230527_195014

Introduction

The Singular Value Decomposition (SVD) algorithm is a powerful tool for dimensionality reduction and data compression. This repository provides an implementation of the SVD algorithm in Python and demonstrates its application in image compression.

How SVD Works

SVD decomposes a matrix into three separate matrices: U, ฮฃ, and V^T. U contains the left singular vectors, ฮฃ is a diagonal matrix containing the singular values, and V^T represents the right singular vectors. The SVD algorithm allows us to approximate the original matrix by selecting a subset of singular vectors and values.

Image Compression with SVD

One of the key applications of SVD is image compression. By choosing an appropriate number of singular values, we can reconstruct the image with reduced storage and transmission requirements. In this repository, we provide code that performs SVD on grayscale images and constructs approximate images with different ranks.

Getting Started

To use the SVD algorithm and experiment with image compression, follow these steps:

  1. Install the necessary dependencies (NumPy, Matplotlib) if not already installed.
  2. Clone this repository to your local machine.
  3. Open the provided Jupyter notebook or Python script.
  4. Run the code to see the SVD in action and visualize the reconstructed images at different ranks.

Implementation

(1) Implementation of SVD in Python from scratch
(2) Implementation of SVD in Python using Numpy
(3) Application of SVD

Further Exploration

SVD has applications beyond image compression. It can be utilized in various domains, including database analysis and video compression. To deepen your understanding, we encourage you to explore additional resources on SVD and practice implementing the algorithm in different scenarios.

Video tutoriel

https://www.youtube.com/watch?v=emUZuGDkemk
Video - Singular Value Decomposition


Conclusion

In conclusion, the SVD algorithm is a powerful technique for dimensionality reduction and data compression. This repository provides an implementation of SVD in Python and demonstrates its application in image compression. By adjusting the number of singular values, you can control the level of approximation in the reconstructed images. We invite you to delve deeper into SVD and its versatile applications. Happy coding!

References

The project team ๐Ÿ‘จโ€๐Ÿ’ป

Ayoub ETOULLALI Hasnae AIT TAARABT Houda CHAHIL

svd-singular-value-decomposition's People

Contributors

ayoub-etoullali avatar

Stargazers

 avatar  avatar  avatar  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.