java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • java.lang.IllegalArgumentException: The function object (Java class net.razorvine.pickle.objects.ClassDictConstructor) is not a Numpy universal function at sklearn.preprocessing.FunctionTransformer.encodeFeatures(FunctionTransformer.java:54) at sklearn_pandas.DataFrameMapper.encodeFeatures(DataFrameMapper.java:70) at org.jpmml.sklearn.Main.run(Main.java:146) at org.jpmml.sklearn.Main.main(Main.java:107) Caused by: java.lang.ClassCastException: net.razorvine.pickle.objects.ClassDictConstructor cannot be cast to numpy.core.UFunc at sklearn.preprocessing.FunctionTransformer.encodeFeatures(FunctionTransformer.java:52) ... 3 more
No Bugmate found.