Coder Social home page Coder Social logo

dsc-linalg-section-recap-dc-ds-060319's Introduction

Section Recap

Introduction

In this section, you learned the fundamentals of Linear Algebra. An understanding of Linear Algebra will help you better understand the underlying mathematics behind some machine learning algorithms.

Objectives

You will be able to:

  • Understand and explain what was covered in this section
  • Understand and explain why this section will help you become a data scientist

Key Takeaways

The goal of section 26 was to provide both a conceptual and computational introduction to Linear Algebra - one of the foundational concepts underlying most machine learning models. Some of the key takeaways include:

  • Understanding Linear Algebra will provide you a much stronger foundation when learning a range of data science topics - from Support Vector Machines and deep learning through Natural Language Processing and dimensionality reduction techniques like Principle Component Analysis
  • One use case for vectors and matrices is for representing and solving systems of linear equations
  • A scalar is a single, real number. A vector is a one dimensional array of numbers. A matrix is a 2 dimensional array of numbers.
  • A tensor is a generalized term for an n-dimensional rectangular grid of numbers. A vector is a one-dimensional (first order) tensor, a matrix is a two-dimensional (second order tensor), etc.
  • Two matrices can be added together if they have the same shape
  • Scalars can be added to matrices by adding the scalar (number) to each element
  • Broadcasting allows for the addition of matrices of different shapes by extending the dimensions of the smaller matrix to match the dimensions of the larger one
  • To calculate the dot product for matrix multiplication, the first matrix must have the same number of columns and the second has rows.
  • Matrix multiplication is distributive and associative, but not commutative
  • Operating on NumPy data types is substantially more computationally efficient than performing the same operations on native Python data types
  • It is possible to use Linear Algebra in NumPy to solve for a linear regression using the OLS method
  • OLS is not computationally efficient, so in practice we usually perform a gradient descent instead to solve a linear regression

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.