- One must remember that the dense and SparseVectors are local vectors and they must not be confused with the distributed facilities (for example, distributed matrices such as the RowMatrix class).
- The underlying math operations for the vectors on a local machine will be provided by two libraries:
-
- Breeze: http://www.scalanlp.org/
- JBLAS: http://jblas.org/
There is another data structure related directly to Vectors called LabeledPoint, which we covered in Chapter 4, Common Recipes for Implementing a Robust Machine Learning System. In short, it is a data structure corresponding to LIBSVM and LIBLINEAR formats for storing ML data consisting of a feature vector plus a label (for example, independent and dependent variables ...