Closed brightzhong closed 4 years ago
spark version : 2.3.1 pmml version :1.4.11
java.util.NoSuchElementException: Failed to find a default value for inputCol
You're using QuantileDiscretizer
in multi-column mode (QuantileDiscretizer#setInputCols
), which isn't currently supported. Please switch to single-column mode (QuantileDiscretizer#setInputCol
) for the time being.
how to solve it
java.util.NoSuchElementException: Failed to find a default value for inputCol
You're using
QuantileDiscretizer
in multi-column mode (QuantileDiscretizer#setInputCols
), which isn't currently supported. Please switch to single-column mode (QuantileDiscretizer#setInputCol
) for the time being.
thanks for your reminding,you mean spark3.0 can support mode (QuantileDiscretizer#setInputCols
)? i have tried mleap and jpmml,but both of them failed,jpmml also got this same error
Thanks you
------------------ 原始邮件 ------------------ 发件人: "Jacquelin1"<notifications@github.com>; 发送时间: 2020年7月23日(星期四) 中午11:23 收件人: "jpmml/jpmml-sparkml"<jpmml-sparkml@noreply.github.com>; 抄送: "风风风"<2401436525@qq.com>; "Comment"<comment@noreply.github.com>; 主题: Re: [jpmml/jpmml-sparkml] Support multi-column transformation modes (in newer Apache Spark versions) (#78)
java.util.NoSuchElementException: Failed to find a default value for inputCol
You're using QuantileDiscretizer in multi-column mode (QuantileDiscretizer#setInputCols), which isn't currently supported. Please switch to single-column mode (QuantileDiscretizer#setInputCol) for the time being.
thanks for your reminding,you mean spark3.0 can support mode (QuantileDiscretizer#setInputCols)? i have tried mleap and jpmml,but both of them failed,jpmml also got this same error
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
i have tried mleap and jpmml,but both of them failed,jpmml also got this same error
Bullshit. Recent JPMML-SparkML versions work just fine - see the above commit for when the support for introduced.
my code is :
error:
I get the above exception when i saving pmml to a file path . Any ideas on how to resolve this? Please comment if further details are needed.