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

How to choose PMML version? #71

Closed
pinduzera opened this issue Oct 29, 2021 · 5 comments
Closed

How to choose PMML version? #71

pinduzera opened this issue Oct 29, 2021 · 5 comments

Comments

@pinduzera
Copy link

pinduzera commented Oct 29, 2021

Hello!
I wasn't able to find the option in the arguments, looking in the JAVA version I know that it does exist but couldn't find the argument/function.

How to choose a legacy PMML version? I'd like to use 4.2. (I know about renaming only, but this would be a great appeal on this package)

@vruusmann
Copy link
Member

I wasn't able to find the option in the arguments,

The R2PMML package does not have such an option.

Perhaps you're confusing this package with the legacy pmml package (ref Cumulocity-IoT/r-pmml#7)?

How to choose a legacy PMML version?

Use some very old R2PMML package version. Something from 2015 or 2016 perhaps, when PMML schema version 4.3 didn't formally exist yet.

@pinduzera
Copy link
Author

pinduzera commented Oct 29, 2021

https://github.com/jpmml/jpmml-model
In the first readme lines:
"Full support for PMML 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 4.3 and 4.4 schemas: "

I guessed this would allow me to write to such versions.

@vruusmann
Copy link
Member

"Full support for PMML 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 4.3 and 4.4 schemas"

Correct, the JPMML-Model library can losslessly represent PMML documents that use any of those schema versions. For example, you can read a PMML 3.0 document into memory, and write it back to a new PMML 3.0 document.

You are requesting a transformation operation between PMML schema versions ("make 4.4 into 4.2"). This is a completely different matter.

@pinduzera
Copy link
Author

Humm, I think I've miss explained myself then.

My goal was just
r2pmml(model, version = 4.2)
Not really want to translate

But thanks for your patience anyway :)

@vruusmann
Copy link
Member

vruusmann commented Oct 29, 2021

My goal was just
r2pmml(model, version = 4.2)

The R2PMML package does not support a version parameter. Never has, and probably never will.

See #71 (comment)

Not really want to translate

The latest R2PMML package version is generating PMML 4.4 documents. If you want to obtain an earlier PMML schema version document, then you need to perform a translation/transformation (ie. expressing 4.4-specific markup in terms of 4.2 markup).

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

2 participants