-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expression translator should support multi-dimensional array indexing syntax #15
Comments
Moved this issue to its rightful project (the stack trace originates from the In short, the This is pretty much "by design", because the PMML language deals with scalar-type values, not collection- or array-type values. The one-dimensional array indexing syntax is supported, because JPMML converters keep track of data frame columns automatically. |
I'm not closing this feature request outright, because multi-dimensional array indexing support is foreseeable on longer timeframes (relevant both in JPMML-SkLearn and JPMML-SparkML projects). The main requirement is that JPMML converters need to be supplied information about "extra dimensions" first. For example, in case of SkLearn2PMML/JPMML-SkLearn this information could be conveyed in the form of a Something like this: transformer = make_pipeline([
("decorator", ArrayDomain(second_axis = [..]),
("row_extractor", ExpressionTransformer("X[:][1]")
]) |
For starters, the JPMML-Converter project needs to define a specialized feature class (that the JPMML-Python expression translator component could use in this particular scenario). Something like |
Hi, I have a scanrio where I need to use an array as a input column to my pipeline.
I'd reduced a minimal example of the issue I'm having:
The above pipeline works fine in my jupyter notebook. But converting it to a PMML gives an error:
Gives the error:
The text was updated successfully, but these errors were encountered: