You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure this is the right place to ask this question.
When i try to export a SVC model (a pipeline) by sklearn2Pmml, i always get a pmml with classificationMethod="OneAgainstOne", though i explicitly specifying decision_function_shape as "ovr" in python. The pipeline is defined as following,
After i checked the source code in converter/support_vector_machine/LibSVMUtil.java:116, i found the SupportVectorMachineModel.ClassificationMethod is initialized as ONE_AGAINST_ONE and without any reseting by the decision_function shape set in python.
Please correct me is anything i missed.
Many thanks for your help. You made a great project!
The text was updated successfully, but these errors were encountered:
@rymmonlu What exactly is the problem? Is the generated PMML document making incorrect predictions?
What difference does it make how a Python data structure is translated to a PMML data structure, for as long as the translation preserves the properties of the original prediction algorithm?
I've now run my SVC integration tests with decision_function_shape="ovr" and decision_function_shape="ovo", and verified that the current JPMML-Converter/JPMML-SkLearn/SkLearn2PMML software stack is generating PMML documents that make correct predictions when evaluated with the JPMML-Evaluator library.
The JPMML family of libraries chooses to use ONE_AGAINST_ONE encoding scheme for LibSVM-based SVM models, because it leads to the most compact/readable PMML representation.
Not sure this is the right place to ask this question.
When i try to export a SVC model (a pipeline) by sklearn2Pmml, i always get a pmml with classificationMethod="OneAgainstOne", though i explicitly specifying decision_function_shape as "ovr" in python. The pipeline is defined as following,
After i checked the source code in converter/support_vector_machine/LibSVMUtil.java:116, i found the SupportVectorMachineModel.ClassificationMethod is initialized as ONE_AGAINST_ONE and without any reseting by the decision_function shape set in python.
Please correct me is anything i missed.
Many thanks for your help. You made a great project!
The text was updated successfully, but these errors were encountered: