Giter VIP home page Giter VIP logo

Comments (5)

vruusmann avatar vruusmann commented on August 18, 2024

I have been testing with Pandas 1.1.X.

You are using Pandas 1.2.X, and it appears to be the case that the pandas.Series class does not specify a _data attributes anymore.

Possible solutions:

  1. Change the y type from pandas.Series to something else, such as a 1D Numpy array.
  2. Downgrade Pandas from 1.2.X to 1.1.X.

from jpmml-python.

vruusmann avatar vruusmann commented on August 18, 2024

Sample requirements:
https://github.com/jpmml/sklearn2pmml/blob/0.69.0/requirements.txt

from jpmml-python.

vruusmann avatar vruusmann commented on August 18, 2024

Please disregard #9 (comment)

The exception stack trace shows that it's being raised in relation to feature data, not label data. So, tweaking the y value has no effect.

from jpmml-python.

deltawi avatar deltawi commented on August 18, 2024

@vruusmann is there as solution for the current version ? I saw you closed the issue with a fix. Does that mean that the fix is not available before the next release ?

from jpmml-python.

vruusmann avatar vruusmann commented on August 18, 2024

According to my integration tests, the Series._data attribute was changed to Series._mgr attribute in Pandas 1.1.

As a quick workaround, you should downgrade your Pandas version to 1.0.5.

It'll take some days until the fixed JPMML-Python library is propagated to the SkLearn2PMML package, and released to PyPI.

from jpmml-python.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.