SauceCat / PDPbox

python partial dependence plot toolbox
http://pdpbox.readthedocs.io/en/latest/
MIT License
840 stars 129 forks source link

PDP for One hot encoded features #62

Closed swaticolab closed 3 years ago

swaticolab commented 4 years ago

I have a one hot encoded feature, with the resulting datatype of numeric. When I plot the PDP for this feature, I get a weird plot representing nothing, as below: image

The plot works fine for other numeric feature columns. Only is not working fine for this OHE feature. Any suggestions?

SauceCat commented 4 years ago

Can you try to change your feature name to jobTitle_isunknown (replace all white space with ) I suspect it’s the naming issue

2020年2月21日(金) 午後8:13 swaticolab notifications@github.com:

I have a one hot encoded feature, with the resulting datatype of numeric. When I plot the PDP for this feature, I get a weird plot representing nothing, as below: [image: image] https://user-images.githubusercontent.com/49306345/75033687-753c3700-54d1-11ea-8c2c-e20cd2ff0ff1.png

The plot works fine for other numeric feature columns. Only is not working fine for this OHE feature. Any suggestions?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SauceCat/PDPbox/issues/62?email_source=notifications&email_token=ADXNPFAIOSOVKIZCA4DKIL3RD7AM3A5CNFSM4KZCBUW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPJA7AQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXNPFFHSZH33HYKMVPQ4OLRD7AM3ANCNFSM4KZCBUWQ .

swaticolab commented 4 years ago

I tried after removing the spaces. Same issue again. image