-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add "dummy" estimator classes #34
Comments
Yes, this requirement is clearly communicated by the exception message. If you want to export pipelines that are feature transformation-dominant, then you should consider introducing a dummy (ie. no-op) model into the pipeline. For example, in Scikit-Learn you can use estimator types The model object is needed to define the "schema" of the pipeline - what are the input features, what are the output features. Without the model object the converter can only generate empty PMML documents. |
Thank you for your reply,does have any dummy model in the spark mllib? I use spark ml in my train. |
Depending on your Apache Spark ML version, there may or may not be appropriate technical workarounds available. For example, a potential solution:
|
Someone might search the Apache Spark JIRA, and see if there is a feature request for dummy estimator classes already available or not. I wouldn't want to create and maintain these classes myself. But if absolutely necessary, I will do it. |
Reopening, because I might want to provide some sort of easier workaround in the JPMML-SparkML library. |
@vruusmann So nice you are! |
Hello:
When I use Converter like this
,val oneHotPMML = ConverterUtil.toPMML(onehotSource.schema, oneHotModel)
I got a Error like this:
After debug, I got the reason.
There didn't have any ModelConverter in my model.
Is it necessary that must have a ModelConverter in my pipelinemodel?
The text was updated successfully, but these errors were encountered: