April 2017
Intermediate to advanced
532 pages
12h 39m
English
A local matrix in Spark has integer-typed row and column indices. Values are double-typed. All the values are stored on a single machine. MLlib supports the following matrix types:
This is an example of a dense and sparse matrix:
val dMatrix: Matrix = Matrices.dense(2, 2, Array(1.0, 2.0, 3.0, 4.0)) println("dMatrix: n" + dMatrix) val sMatrixOne: Matrix ...Read now
Unlock full access