scorecardpy icon indicating copy to clipboard operation
scorecardpy copied to clipboard

Calibrated model in scorecard

Open Alinemm opened this issue 5 years ago • 1 comments

Hi,

first of all, your solution is so useful. Thank you for that!

I had problems to put a calibrated model (using CalibratedClassifierCV) in scorecard function.

card = sc.scorecard(bins_adj, lr, X_train.columns , points0=p, pdo=pd)

Error message: "AttributeError: 'CalibratedClassifierCV' object has no attribute 'coef_'"

I would like to know if have you any mechanism to deal with that ? If not, I can do my mechanism and share to the community.

The best wishes.

Alinemm avatar Dec 04 '20 13:12 Alinemm

I dont know how to deal with the CalibratedClassifierCV objects in the scorecard function. You can contribute to this project on this issue. Thanks.

ShichenXie avatar Dec 05 '20 01:12 ShichenXie

A new function scorecard2 is added into this package, which requires binning from woebin function and feature selected from the algorithms you choose.

ShichenXie avatar May 22 '23 14:05 ShichenXie