Closed magdanowak closed 5 years ago
It's because the function "x-sin" is not a standard built-in function for PMML. The latest PMML 4.4 picks up the "sin".
Anyway, I updated the PMML4S library to support those extension functions and standard ones of 4.4 for the trigonometric functions.
Please, reinstall the latest version from Github by the following command:
pip install --upgrade git+https://github.com/autodeployai/pypmml.git
Please, let me know if you still have problem.
@magdanowak What's the status of your issue? Did the fix above resolve it?
@scorebot Thank you for resolving the issue so fast! Your fix did indeed help.
@magdanowak It's fine. I close this issue now, you can open new issues if you have other problems.
I have a pmml file generated with
sklearn2pmml
with the followingDerivedField
:When I try to read it into Python with
pypmml.Model
, I get the following error:('FunctionNotFoundException', "Function 'x-sin' is not defined.")
Is there a possibility to add the trigonometric functions to your package?