Answer Posted / Abhijeet Verma
A sparse vector is a mathematical object used to represent vectors with many zero elements. In Spark, a sparse vector is represented by SparseVector. It's efficient because it doesn't store non-zero values explicitly for all indices, instead, it stores the index and value pairs for non-zero entries.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers