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
When using pzmm.ImportModel.import_model for wirting scoring code for binary/multinomial classification it assumes from result = SKmodel.predict_proba(...) that the result[0] is the target variable probability and assigns it to EM_EVENTPROBABILITY, which may be incorrect, the levels probability may be in a distinct column.
At least for classification models, you can get the probability class labels and orders from SKmodel.classes_. If the user adds something like targetevent = "label", we could use it to assign the correct column of probability to EM_EVENTPROBABILITY.
It is likely that this only works for classification, and should not be confused when the model is a regression.
The text was updated successfully, but these errors were encountered:
When using
pzmm.ImportModel.import_model
for wirting scoring code for binary/multinomial classification it assumes fromresult = SKmodel.predict_proba(...)
that theresult[0]
is the target variable probability and assigns it toEM_EVENTPROBABILITY
, which may be incorrect, the levels probability may be in a distinct column.At least for classification models, you can get the probability class labels and orders from
SKmodel.classes_
. If the user adds something liketargetevent = "label"
, we could use it to assign the correct column of probability toEM_EVENTPROBABILITY
.It is likely that this only works for classification, and should not be confused when the model is a regression.
The text was updated successfully, but these errors were encountered: