Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26616

Expose document frequency in IDFModel

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 3.0.0
    • Component/s: ML, MLlib
    • Labels:
      None
    • Docs Text:
      Provide DocumentFrequency in IDF

      Description

      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. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                purijatin Jatin Puri
                Reporter:
                purijatin Jatin Puri
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: