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

GitHub | keithgw | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

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