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

GitHub | keithgw | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 16#243254737

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

    XGBClassifier wrapper failing to convert

    GitHub | 8 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