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

Expose document frequency in IDFModel

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 3.0.0
    • ML, MLlib
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: