-
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
Ability to suppress the (default-) Output
element
#180
Comments
These three values are calculated all in one pass. Therefore, there will be no "performance benefit" to getting rid of the probability output fields other than "visual effect" (eg. keeping things extremely focussed on the screen). In Scikit-Learn, it would take two passes (first
Column renaming is covered in these recently opened issues: jpmml/sklearn2pmml#359 and jpmml/sklearn2pmml#361 There is a special API for renaming transformer fields, but not for renaming model fields.
yt = evaluator.evaluateAll(X)
# THIS!
yt = yt["y"] You may consider wrapping the |
Output
element
I can see the benefit of adding a special-purpose API for disabling the generation of default The easiest way would be such, where the end users signals his/her intent by setting a classifier = ...
pipeline = PMMLPipeline([
("classifier", classifier)
])
pipeline.fit(X, y)
# Default config - the Output element is created
sklearn2pmml(pipeline, "classifier.pmml")
classifier.pmml_output = False
# Custom config - the Output element is not created
sklearn2pmml(pipeline, "classifier-no_proba.pmml") |
Using sklearn2pmml converted pmml file, the default output is
[y,probability(1),probability(0)]
.Is there a way to change the default column name, such as changing
probability(1)
toproba
Or can I select the column that I want, for example I only need to print
y
columns, I don't need to default to outputprobability(1),probability(0)
The text was updated successfully, but these errors were encountered: