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

Typo in org.apache.spark.mllib.tree.DecisionTree.isSampleValid

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: MLlib
    • Labels:

      Description

      I believe this is a typo:

            if ((level > 0) & (parentFilters.length == 0)) {
              return false
            }
      

      Should use "&&" here.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zsxwing Shixiong Zhu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: