# A Gentle Introduction to NumPy Arrays in Python

Last Updated on November 29, 2019 Arrays are the main data structure used in machine learning. In Python, arrays from the NumPy library, called N-dimensional arrays or the ndarray, are used as the primary data structure for representing data. In this tutorial, you will discover the N-dimensional array in NumPy for representing numerical and manipulating data in Python. After completing this tutorial, you will know: What the ndarray is and how to create and inspect an array in Python. Key […]

# A Gentle Introduction to Vectors for Machine Learning

Last Updated on August 9, 2019 Vectors are a foundational element of linear algebra. Vectors are used throughout the field of machine learning in the description of algorithms and processes such as the target variable (y) when training an algorithm. In this tutorial, you will discover linear algebra vectors for machine learning. After completing this tutorial, you will know: What a vector is and how to define one in Python with NumPy. How to perform vector arithmetic such as addition, […]

# Gentle Introduction to Vector Norms in Machine Learning

Last Updated on August 9, 2019 Calculating the length or magnitude of vectors is often required either directly as a regularization method in machine learning, or as part of broader vector or matrix operations. In this tutorial, you will discover the different ways to calculate vector lengths or magnitudes, called the vector norm. After completing this tutorial, you will know: The L1 norm that is calculated as the sum of the absolute values of the vector. The L2 norm that […]

# Introduction to Matrices and Matrix Arithmetic for Machine Learning

Last Updated on August 9, 2019 Matrices are a foundational element of linear algebra. Matrices are used throughout the field of machine learning in the description of algorithms and processes such as the input data variable (X) when training an algorithm. In this tutorial, you will discover matrices in linear algebra and how to manipulate them in Python. After completing this tutorial, you will know: What a matrix is and how to define one in Python with NumPy. How to […]

# Introduction to Matrix Types in Linear Algebra for Machine Learning

Last Updated on August 9, 2019 A lot of linear algebra is concerned with operations on vectors and matrices, and there are many different types of matrices. There are a few types of matrices that you may encounter again and again when getting started in linear algebra, particularity the parts of linear algebra relevant to machine learning. In this tutorial, you will discover a suite of different types of matrices from the field of linear algebra that you may encounter […]

# A Gentle Introduction to Matrix Operations for Machine Learning

Last Updated on August 9, 2019 Matrix operations are used in the description of many machine learning algorithms. Some operations can be used directly to solve key equations, whereas others provide useful shorthand or foundation in the description and the use of more complex matrix operations. In this tutorial, you will discover important linear algebra matrix operations used in the description of machine learning methods. After completing this tutorial, you will know: The Transpose operation for flipping the dimensions of […]

# A Gentle Introduction to Tensors for Machine Learning with NumPy

Last Updated on December 6, 2019 In deep learning it is common to see a lot of discussion around tensors as the cornerstone data structure. Tensor even appears in name of Google’s flagship machine learning library: “TensorFlow“. Tensors are a type of data structure used in linear algebra, and like vectors and matrices, you can calculate arithmetic operations with tensors. In this tutorial, you will discover what tensors are and how to manipulate them in Python with NumPy After completing […]

# A Gentle Introduction to Matrix Factorization for Machine Learning

Last Updated on August 9, 2019 Many complex matrix operations cannot be solved efficiently or with stability using the limited precision of computers. Matrix decompositions are methods that reduce a matrix into constituent parts that make it easier to calculate more complex matrix operations. Matrix decomposition methods, also called matrix factorization methods, are a foundation of linear algebra in computers, even for basic operations such as solving systems of linear equations, calculating the inverse, and calculating the determinant of a […]