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

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.4.3
    • None
    • MLlib
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: