Jatin Puri created SPARK-26616:
----------------------------------

             Summary: Expose document frequency in IDFModel
                 Key: SPARK-26616
                 URL: https://issues.apache.org/jira/browse/SPARK-26616
             Project: Spark
          Issue Type: Improvement
          Components: ML, MLlib
    Affects Versions: 2.4.0
            Reporter: Jatin Puri


As part of `org.apache.spark.ml.feature.IDFModel`, the following can be exposed:
 
1. Document frequency vector
2. Number of documents
 
The above are already computed in calculating idf vector. It simply need to be 
exposed as `public val`
 
This avoids re-implementation for someone who needs to compute 
DocumentFrequency of terms. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to