Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.61 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.61 KB

Matrix Creation, Modification, and Access

Many modeling, machine learning, and optimization algorithms rely on linear algebra concepts. These concepts include eigenvalues/vectors, matrix multiplication, matrix inversion, and more. Thus, data utilized by data scientists often has to be represented in matrix form, and data scientists will likely need to employ matrix operations in their applications.

Notes

  • A matrix is a rectangular array representation of numbers, expressions, etc.
  • Elements in a matrix are referenced by a row and column index.
  • gonum.org/v1/gonum/mat provides functionality to create, modify, and manipulate matrices made up of float64 values.

Links

The Matrix Cookbook
Khan Academy - Matrices
Khan Academy - Linear Algebra

Code Review

gonum.org/v1/mat docs
Form a float64 matrix
Modify a matrix
Access values in a matrix
Format matrix output

Exercises

Exercise 1

Create a matrix from diabetes.csv using gonum.org/v1/gonum/mat. Format and output the first 10 rows to standard out.

Template | Answer


All material is licensed under the Apache License Version 2.0, January 2004.