java.lang.IllegalArgumentException: statsmodels.datasets.anes96.data

GitHub | jrwalk | 8 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` serialization in `DataFrameMapper` failing on `numpy.log`

    GitHub | 8 months ago | jrwalk
    java.lang.IllegalArgumentException: statsmodels.datasets.anes96.data
  2. 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

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      statsmodels.datasets.anes96.data

      at sklearn.preprocessing.FunctionTransformer.parseUFunc()
    2. sklearn.preprocessing
      FunctionTransformer.encodeFeatures
      1. sklearn.preprocessing.FunctionTransformer.parseUFunc(FunctionTransformer.java:102)
      2. sklearn.preprocessing.FunctionTransformer.encodeFeatures(FunctionTransformer.java:57)
      2 frames
    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