Skip to content
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

Simple prediction mode #28

Open
vruusmann opened this issue Feb 8, 2019 · 0 comments
Open

Simple prediction mode #28

vruusmann opened this issue Feb 8, 2019 · 0 comments

Comments

@vruusmann
Copy link
Member

vruusmann commented Feb 8, 2019

The PMML transformer currently operates in "appending" mode - the Transformer#transform(Dataset<Row>) method appends prediction columns to the input dataset.

The "appending mode" appears to be Apache Spark convention. However, in some situations (eg. demonstration purposes) it might be desirable to operate in "simple" (aka "standalone") mode - the transform method creates a new dataset that only contains prediction columns.

Could be easily achieved by introducing a TransformerBuilder#setTransformationMode(Mode.APPENDING|Mode.STANDALONE) configuration method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant