Having established the role of linear algebra in machine learning and familiarized ourselves with the NumPy library, we now turn our attention to vectors. Vectors serve as fundamental objects for representing data points or features.
This chapter introduces the concept of a vector from both geometric and algebraic perspectives. We will cover standard mathematical notation for vectors and demonstrate how to represent them using NumPy arrays in Python. You will learn to perform essential vector operations, including:
Practical examples using NumPy will accompany the mathematical definitions, ensuring you can apply these concepts directly in code. By the end of this chapter, you will be comfortable defining vectors and manipulating them using key operations.
3.1 What is a Vector?
3.2 Vector Notation
3.3 Vectors in Python using NumPy
3.4 Vector Addition and Subtraction
3.5 Scalar Multiplication
3.6 Vector Norms: Measuring Length
3.7 The Dot Product
3.8 Hands-on: Vector Operations with NumPy
© 2025 ApX Machine Learning