-
Notifications
You must be signed in to change notification settings - Fork 116
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
Support for transformer-only pipelines #86
Comments
There was a similar situation with Apache Spark pipelines, and we managed to find some sort of fairly elegant solution there. However, Apache Spark pipelines are far more flexible than Scikit-Learn pipelines (eg. can have multiple models in a pipeline, and there can be transformers following the last model), so the solution is probably 1:1 transferable (and I really cannot recall its technical details).
Probably the easiest solution to your problem:
Something like this should do: <Output>
<OutputField name="z" dataType=".." optype="..">
<!-- refers to a DerivedField element whose name is "internal(y)" -->
<FieldRef field="internal(y)"/>
</OutputField>
</Output> |
Re-purposed this issue. Would like to provide a solution that wouldn't require defining custom estimator types and renaming fields. Perhaps the |
Thanks for the suggestion, I will look into creating a dummy estimator. I noticed that the |
See this comment, and the issue referenced therein: |
I understand that a
PMMLPipeline
must end with an estimator to be valid for conversion to pmml. I have use cases in which I have useful pipelines for preprocessing that I would like to convert to pmml for evaluation in Java.If I stick a
DummyClassifier
orDummyRegressor
at the end of the pipeline, it is able to be written to valid pmml, however thetarget_fields
information is lost, and I am unsure how to recover anything but the dummy prediction from the pmml.Is there a recommended workflow in this situation? Should I use the jpmml-plugin to create some sort of "pass through" estimator that returns the input?
Thanks for your help!
The text was updated successfully, but these errors were encountered: