-
Notifications
You must be signed in to change notification settings - Fork 256
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
Ability to "soft rename" fields #127
Comments
Hello! Does this issue have some pitfalls? Or it will be enough to add one method |
None that I'm aware of - it a matter of defining a I just don't have time to work on the JPMML-Evaluator project right now. If I ever get a chance to do so, then I will implement a nice set of other enhancements too. Most notably, there is going to be an |
Some application environments do not support JPMML-style field names.
For example, all JPMML conversion libraries use a pattern
probability(<category level>)
for naming probability fields, which is known to crash Apache Hive query parser:jpmml/jpmml-converter#10
jpmml/jpmml-evaluator-hive#2
The JPMML-Evaluator library should provide API for "soft renaming" fields. Here, "soft rename" means that the field is given a different name/alias at the logical JPMML-Evaluator library level, but not at the physical PMML document level.
Perhaps, class
org.jpmml.evaluator.ModelField
should treat the name property as mutable, and offer a#setName()
method (in addition to the#getName()
method). Application developers could then soft rename fields like this:The text was updated successfully, but these errors were encountered: