Comments (5)
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:
- Change the
y
type frompandas.Series
to something else, such as a 1D Numpy array. - Downgrade Pandas from 1.2.X to 1.1.X.
from jpmml-python.
Sample requirements:
https://github.com/jpmml/sklearn2pmml/blob/0.69.0/requirements.txt
from jpmml-python.
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.
@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.
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)
- Support for higher-arity Numpy universal functions HOT 1
- FunctionTransformer has an unsupported value (Python class numpy.core._multiarray_umath.log) HOT 9
- Nested ifelse is not working in Expression Transformer HOT 3
- how *.pkl file to pmml HOT 1
- [Method feasibility]: Whether to support the use of pandas module python to convert into *.pmml file HOT 1
- Support for bitwise logical operators HOT 7
- Expression translator should support multi-dimensional array indexing syntax HOT 3
- Scipy in ExpressionTransformer HOT 9
- If elif in ExpressionTransformer HOT 2
- It seems like dynamic string slicing is not allowed in ExpressionTransformer HOT 2
- Compatibility with Joblib 1.2(.0) HOT 2
- Support for half-precision (aka `binary16` or `float16`) floating-point values
- Function 'builtins.int' is not supported? HOT 5
- Support for Numpy and Pandas' nullability check functions in the predicate context HOT 1
- Command-line applications for translating Python expressions and predicates to PMML HOT 1
- Feature request: power ufunc HOT 3
- Support for string slicing (`str[begin:end]`) expressions
- Support for string length function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpmml-python.