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.

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