
上QQ阅读APP看书,第一时间看更新
Creating SparseVector and setup with Spark
In this recipe, we examine several types of SparseVector creation. As the length of the vector increases (millions) and the density remains low (few non-zero members), then sparse representation becomes more and more advantageous over the DenseVector.