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

[ML] PolynomialExpansion and Normalizer should validate input type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Incomplete
    • 1.6.0, 2.0.0
    • None
    • ML, MLlib

    Description

      PolynomialExpansion and Normalizer should override UnaryTransformer::validateInputType

      Now, in case of trying to operate on String column:
      java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.spark.mllib.linalg.Vector
      is thrown, but:
      java.lang.IllegalArgumentException: requirement failed: Input type must be VectorUDT but got StringType
      will be more clear and adequate

      Attachments

        Activity

          People

            grzegorz.chilkiewicz Grzegorz Chilkiewicz
            grzegorz.chilkiewicz Grzegorz Chilkiewicz
            Nicholas Pentreath Nicholas Pentreath
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: