Answer Posted / Gaurav Kumar Shah
"In Apache Spark's MLlib, you can use the SparseVector class to create a sparse vector from a dense vector. You can create a SparseVector by specifying an array of indices and another array for values, representing non-zero elements in the sparse vector. The zero entries are assumed where no indices are specified."n
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers