java.lang.ClassCastException: numpy.core.NDArray cannot be cast to java.util.List

GitHub | keithgw | 6 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

    GitHub comment 16#243254737

    GitHub | 6 months ago | keithgw
    java.lang.ClassCastException: numpy.core.NDArray cannot be cast to java.util.List
  2. 0

    XGBClassifier wrapper failing to convert

    GitHub | 6 months ago | keithgw
    java.lang.ClassCastException: numpy.core.NDArray cannot be cast to java.util.List

    Root Cause Analysis

    1. java.lang.ClassCastException

      numpy.core.NDArray cannot be cast to java.util.List

      at xgboost.sklearn.XGBClassifier.getClasses()
    2. xgboost.sklearn
      XGBClassifier.getClasses
      1. xgboost.sklearn.XGBClassifier.getClasses(XGBClassifier.java:55)
      1 frame
    3. sklearn
      EstimatorUtil.encodePMML
      1. sklearn.Classifier.createSchema(Classifier.java:43)
      2. sklearn.EstimatorUtil.encodePMML(EstimatorUtil.java:47)
      2 frames
    4. org.jpmml.sklearn
      Main.main
      1. org.jpmml.sklearn.Main.run(Main.java:189)
      2. org.jpmml.sklearn.Main.main(Main.java:107)
      2 frames