-
Notifications
You must be signed in to change notification settings - Fork 117
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
Implementation of sklearn.preprocessing.Normalizer #50
Comments
The If you want to sum any number of arguments, then you should use the So, the following code change should do the trick:
|
@vruusmann, thanks for response! |
Did it solve your problem? I closed this issue, because theoretically the change from
Lack of time - need to focus on more important projects. |
Yes, it works for me! |
This behaviour can be controlled by customizing the value of the Please note that this attribute may be overriden by the Check your PMML document to see the actual configuration (the The default value of both attributes is Is the (J)PMML behaviour different from Scikit-Learn behaviour? If so, then it might be worthwhile to open a new issue to implement an appropriate fix. However, be sure to accompany this issue with a reproducible Python code example (eg. based on the "Sentiment" dataset, which is part of the JPMML-SkLearn integration test suite under the |
Thank you for quick response.
it helped me.
After the fix it gives same results. I've implemented different ways of normalization that give the same result as Scikit-learn normalizer. I'm also thinking of integrating it into TfIdfVectorizer. |
The goal is that (J)PMML and Scikit-Learn predictions should match by default. So, it might be necessary to revisit the converter for the
I don't generally accept PRs for IPR (copyrights etc.) reasons. However, you're welcome to summarize your observations and code changes (eg. a patchfile), and I will carry them over to the JPMML-SkLearn repository as my original work. Will credit you in the commit message. |
Opened a new issue about TF-IDF case-sensitivity: Please list all your relevant observations (and suggested fixes) there. |
Hi, I've tried to implement sklearn.preprocessing.Normalizer with l1 norm as custom Transformer.
It builds pmml, but fails during running evaluation with error "Expected 2 arguments, but got 3000 arguments' where 3000 is features.size()."
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: