Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-30730

StringIndexer cannot handle null values correctly

    XMLWordPrintableJSON

Details

    Description

      When training data contains null values, StringIndexer throws a exception. The reason is this method [1]: null values are neither String type nor Number type.

      In StringIndexerModel, null values are also not handled correctly when performing transformation.

       

      [1] https://github.com/apache/flink-ml/blob/966cedd7bbab4e12d8d8b37dbd582146714e68a6/flink-ml-lib/src/main/java/org/apache/flink/ml/feature/stringindexer/StringIndexer.java#L164

      Attachments

        Activity

          People

            hongfanxo Fan Hong
            hongfanxo Fan Hong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: