[
https://issues.apache.org/jira/browse/SPARK-7422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14537584#comment-14537584
]
Joseph K. Bradley commented on SPARK-7422:
------------------------------------------
"Inactive" means an element in a SparseVector which is not explicitly
represented in the indices & values arrays. "Active" elements are in those
arrays (but could have value 0.0, which is why active is not the same as
non-zero).
> Add argmax to Vector, SparseVector
> ----------------------------------
>
> Key: SPARK-7422
> URL: https://issues.apache.org/jira/browse/SPARK-7422
> Project: Spark
> Issue Type: New Feature
> Components: MLlib
> Reporter: Joseph K. Bradley
> Priority: Minor
> Labels: starter
>
> DenseVector has an argmax method which is currently private to Spark. It
> would be nice to add that method to Vector and SparseVector. Adding it to
> SparseVector would require being careful about handling the inactive elements
> correctly and efficiently.
> We should make argmax public and add unit tests.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]