Just Enough Linear Algebra for Machine Learning with Spark

In this chapter, we will cover the following recipes:

  • Package imports and initial setup for vectors and matrices
  • Creating DenseVector and setup with Spark 2.0
  • Creating SparseVector and setup with Spark 2.0
  • Creating DenseMatrix and setup with Spark 2.0
  • Using sparse local matrices with Spark 2.0
  • Performing vector arithmetic using Spark 2.0
  • Performing matrix arithmetic with Spark 2.0
  • Distributed matrices in Spark 2.0 ML library
  • Exploring RowMatrix in Spark 2.0
  • Exploring distributed IndexedRowMatrix in Spark 2.0
  • Exploring distributed CoordinateMatrix in Spark 2.0
  • Exploring distributed BlockMatrix in Spark 2.0

Get Apache Spark 2.x Machine Learning Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.