GithubHelp home page GithubHelp logo

tanya-jp / linearalgebra Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 135 KB

Four Mini-Projects Based on the Important Topics in Linear Algebra, Such as Augmented Matrix, Shear Transformation, Linear and Polynomial Regression, and SVD

Python 100.00%
coordinate-systems linear-algebra linear-regression polynomial-regression regression svd augmented-matrix shear-transforamtion linearalgebra

linearalgebra's Introduction

LinearAlgebra

This repository contains four mini-projects covering the important topics in Linear Algebra.

Coordinate System

In this mini-project, the aim is to solve a coordinate system using augmented matrix. The steps of solving the given system are listed in the following:

  1. Creating augmented matrix
  2. Finding pivot columns
  3. Choosing a non-zero pivot column and put that in pivot position by interchanging
  4. Using row replacement to change each entry under the pivot position to zero
  5. Making echelon form of the matrix
  6. Finding free variables
  7. Printing results
  • Input Coordinate System
  1(x3)-2(x4)=-3
  1(x1)-7(x2)+6(x4)=5
  -1(x1)+7(x2)-4(x3)+2(x4)=7

Input values for each row should be splitted by space. For instance, entering first row of above example is:

0 0 1 -2

The rule of entering constant values is the same as entering coefficients.

  • Output
Given Matrix:
[[ 0.  0.  1. -2. -3.]
 [ 1. -7.  0.  6.  5.]
 [-1.  7. -4.  2.  7.]]
x1 is (5.0+-7.0+6.0)
x2 is free
x3 is (-3.0+-2.0)
x4 is free

Shadow

In this mini-project, the attempt is to create a shadow for an object in a picture, using shear transformation. Here are the steps of shadow creation:

  1. Making a matrix of input image by saving its pixels values
  2. Changing the color of objects of input image to gray and saving the results as a new matrix
  3. Using shear transformation on the matrix of gray picture to make shadow and saving the results in a new matrix
  4. Making final image by mixing the results of step 1 and step 3

Regression

This mini-project aims to forecast the open values of the last 10 rows of GOOGL.csv, using linear regression and polynomial regression. After the prediction the error is calculated and the figure of actual values and forecasted ones is shown.

  • Output Figure

Noise Reduction

This mini-project is based on the fact that SVD reduces the noises of received signals and images. The SVD process should be applied on each R, G, and B matrix of the input image to reduce the noises of the Noisy Image. Numpy is used to find the values of S, V and D of each matrix:

np.linalg.svd(matrix)

It is notable that for having the most possible accurate output, S values need a threshold which in this project is set 1750. After finding new S values, new image which has less noise will be created.

linearalgebra's People

Contributors

tanya-jp avatar

Stargazers

 avatar

Watchers

 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.