Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-29818 Missing persist on RDD
  3. SPARK-29826

Missing persist on data in mllib.feature.ChiSqSelector.fit

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: MLlib
    • Labels:
      None

      Description

      The rdd data in mllib.feature.ChiSqSelector.fit() is used by an action in Statistics.chiSqTest(data) and other actions in the following code, but it is not persisted.

       
        def fit(data: RDD[LabeledPoint]): ChiSqSelectorModel = {
          val chiSqTestResult = Statistics.chiSqTest(data).zipWithIndex
          val features = selectorType match {
            case ChiSqSelector.NumTopFeatures =>
              chiSqTestResult
                .sortBy { case (res, _) => res.pValue }
                .take(numTopFeatures)
      

      This issue is reported by our tool CacheCheck, which is used to dynamically detecting persist()/unpersist() api misuses.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                spark_cachecheck IcySanwitch
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: