Vector¶
-
class
pyspark.mllib.linalg.
Vector
¶ Methods
asML
()Convert this vector to the new mllib-local representation.
toArray
()Convert the vector into an numpy.ndarray
Methods Documentation
-
asML
() → pyspark.ml.linalg.Vector¶ Convert this vector to the new mllib-local representation. This does NOT copy the data; it copies references.
- Returns
-
toArray
() → numpy.ndarray¶ Convert the vector into an numpy.ndarray
- Returns
numpy.ndarray
-