Closed JuMan0603 closed 7 years ago
Duplicate of https://github.com/jpmml/jpmml-sparkml/issues/2, https://github.com/jpmml/jpmml-sparkml/issues/18 and https://github.com/jpmml/jpmml-sparkml/issues/21
The resolution is still the same - From the PMML perspective, vector columns are under-specified and cannot/won't be supported
val trainingDataFrame = spark.read.format("libsvm").load(libsvmDataPath).toDF("label", "features")
LibSVM is a vector-oriented data format. Please load your dataset from some non vector-oriented data format (such as CSV).
I solved it, thank you!
can you show zhe detail
Hello,
I encountered some problems when using the JPMML model transformation. This is my data source:
val trainingDataFrame = spark.read.format("libsvm").load(libsvmDataPath).toDF("label", "features")
The schema of "trainingDataFrame" contains the VectorUDT type, so when I useConverterUtil.toPMML (newSchema, loadedModel)
, it will promptjava.lang.IllegalArgumentException
. Here is the code:The full stack trace is:
What should I do to solve this VectorUDT unsupported problem?