Closed animator closed 4 years ago
@animator Thanks for your reminder.
For issues 1 and 3, both are caused by a defect of PMML4S.
About issue 2, the model is tricky, it's a binary classification model with only one SupportVectorMachine element, based on the PMML standard 4.0, the attribute alternateTargetCategory
is required, while it's absent for such model. Actually, this attribute can be inferred by the other attribute targetCategory
, I will enhance this part to let such model work.
I will tell you once all the changes are done.
Thanks for looking into the issues!
I have fixed those issues. 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 a problem.
@animator Can those three models be loaded by the latest version of pypmml successfully?
@scorebot Thanks for fixing the issue! pypmml was able to load all the models successfully. Cheers 🎉
Hi, I am still facing the problem PMML load file. 1.) I downloaded pymml library pypmml-0.9.6.tar.gz and py4j-0.10.9-py2.py3-none-any.whl. I used 'pip install' command. 2.) downloaded http://dmg.org/pmml/pmml_examples/KNIME_PMML_4.1_Examples/single_iris_dectree.xml
##########Python Code ########################## from pypmml import Model if name == 'main': model = Model.load('single_iris_dectree.xml')
####### Error Messages ############
File "c:\xx\scikit3.py", line 24, in
@mk2020-star I was not able to recreate the issue, it was working perfectly at my end. Can you run java -version
on your terminal and share the results (mine provided below):
$ java -version
openjdk version "1.8.0_202-release"
OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
OpenJDK 64-Bit Server VM (build 25.202-b03, mixed mode)
Thanks for the quick response. openjdk version "11.0.3" 2019-04-16 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7) OpenJDK 64-Bit Server VM (build 11.0.3+7, mixed mode)
PMML load is failing for the following PMML files: 1) http://dmg.org/pmml/pmml_examples/KNIME_PMML_4.1_Examples/ensemble_audit_mlp.xml 2) http://dmg.org/pmml/pmml_examples/rattle_pmml_examples/AuditSVM.xml 3) http://dmg.org/pmml/pmml_examples/KNIME_PMML_4.1_Examples/ensemble_iris_mlp.xml
Regards