java.lang.IllegalArgumentException: The function object (Java class net.razorvine.pickle.objects.ClassDictConstructor) is not a Numpy universal function

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

    FunctionTransformer should support all 1-parameter Numpy universal functions (ufuncs)

    GitHub | 7 months ago | keithgw
    java.lang.IllegalArgumentException: The function object (Java class net.razorvine.pickle.objects.ClassDictConstructor) is not a Numpy universal function
  2. 0

    `FunctionTransformer` serialization in `DataFrameMapper` failing on `numpy.log`

    GitHub | 8 months ago | jrwalk
    java.lang.IllegalArgumentException: statsmodels.datasets.anes96.data

    Root Cause Analysis

    1. java.lang.ClassCastException

      net.razorvine.pickle.objects.ClassDictConstructor cannot be cast to numpy.core.UFunc

      at sklearn.preprocessing.FunctionTransformer.encodeFeatures()
    2. sklearn.preprocessing
      FunctionTransformer.encodeFeatures
      1. sklearn.preprocessing.FunctionTransformer.encodeFeatures(FunctionTransformer.java:52)
      1 frame
    3. sklearn_pandas
      DataFrameMapper.encodeFeatures
      1. sklearn_pandas.DataFrameMapper.encodeFeatures(DataFrameMapper.java:70)
      1 frame
    4. 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