alipay / alipay/jpmml-sparkml-lightgbm

An error occurred when the dataset contains string features

Abierto
#12 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
44
Forks
9
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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](https://user-images.githubusercontent.com/8872911/108490865-2db3db00-72de-11eb-96d6-c0e6fc62afc5.png)

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](https://user-images.githubusercontent.com/8872911/108490905-386e7000-72de-11eb-835b-a349ce2714c8.png)

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.