[
https://issues.apache.org/jira/browse/SPARK-7857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14571641#comment-14571641
]
Karl Higley commented on SPARK-7857:
------------------------------------
That does seem like the intent of the test. I started scratching my head when
I noticed that [the minDocFreq is set to
1|https://github.com/apache/spark/blob/master/mllib/src/test/scala/org/apache/spark/mllib/feature/IDFSuite.scala#L73],
and that none of the terms seem to be filtered out.
> IDF w/ minDocFreq on SparseVectors results in literal zeros
> -----------------------------------------------------------
>
> Key: SPARK-7857
> URL: https://issues.apache.org/jira/browse/SPARK-7857
> Project: Spark
> Issue Type: Bug
> Components: MLlib
> Reporter: Karl Higley
> Priority: Minor
>
> When the IDF model's minDocFreq parameter is set to a non-zero threshold, the
> IDF for any feature below that threshold is set to zero. When the model is
> used to transform a set of SparseVectors containing that feature, the
> resulting SparseVectors contain entries whose values are zero. The zero
> entries should be omitted in order to simplify downstream processing.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]