Package pyspark :: Package mllib :: Module linalg
[frames] | no frames]

Module linalg

source code

MLlib utilities for linear algebra. For dense vectors, MLlib uses the NumPy array type, so you can simply pass NumPy arrays around. For sparse vectors, users can construct a SparseVector object from MLlib or pass SciPy scipy.sparse column vectors if SciPy is available in their environment.

Classes
  SparseVector
A simple sparse vector class for passing data to MLlib.
  Vectors
Factory methods for working with vectors.