java.lang.IllegalArgumentException: The value of the sklearn2pmml.decoration.ContinuousDomain.data_min_ attribute (null) is not a supported array type

Stack Overflow | Laurel | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Export SVM model to PMML using Python

    Stack Overflow | 7 months ago | Laurel
    java.lang.IllegalArgumentException: The value of the sklearn2pmml.decoration.ContinuousDomain.data_min_ attribute (null) is not a supported array type

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The value of the sklearn2pmml.decoration.ContinuousDomain.data_min_ attribute (null) is not a supported array type

      at org.jpmml.sklearn.ClassDictUtil.getArray()
    2. org.jpmml.sklearn
      ClassDictUtil.getArray
      1. org.jpmml.sklearn.ClassDictUtil.getArray(ClassDictUtil.java:51)
      1 frame
    3. sklearn2pmml.decoration
      ContinuousDomain.encodeFeatures
      1. sklearn2pmml.decoration.ContinuousDomain.getDataMin(ContinuousDomain.java:111)
      2. sklearn2pmml.decoration.ContinuousDomain.encodeFeatures(ContinuousDomain.java:50)
      2 frames
    4. sklearn_pandas
      DataFrameMapper.encodeFeatures
      1. sklearn_pandas.DataFrameMapper.encodeFeatures(DataFrameMapper.java:70)
      1 frame
    5. org.jpmml.sklearn
      Main.main
      1. org.jpmml.sklearn.Main.run(Main.java:146)
      2. org.jpmml.sklearn.Main.main(Main.java:107)
      2 frames