Skip to content
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

An error occurred when the dataset contains string features #12

Open
Archmagegck opened this issue Feb 19, 2021 · 1 comment
Open

An error occurred when the dataset contains string features #12

Archmagegck opened this issue Feb 19, 2021 · 1 comment

Comments

@Archmagegck
Copy link

My dataset contains some string features, and I used StringIndexer + OneHotEncoder to encode them. When I put the StringIndexers, OneHotEncoders, VectorAssembler, and LightGBM in a pipeline, and fit the pipeline, everything is ok.

image

But, when I want to saved the pipeline into PMML, an error occurred. The error log is: Py4JJavaError: An error occurred while calling o353581.buildFile.
: java.lang.IllegalArgumentException: Field userinfov4_worktype has data type string

image

userinfov4_worktype is one of the string features.
I used jpmml-lightgbm-1.2.13.
Thans for your help.

@manchandagaurav
Copy link

Hey,
Did you find a resolve for this, we are facing the exact same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants