In this recipe, we explore DenseVectors using the Spark 2.0 machine library.
Spark provides two distinct types of vector facilities (dense and sparse) for storing and manipulating feature vectors that are going to be used in machine learning or optimization algorithms.