ustunb / risk-slim

simple customizable risk scores in python
BSD 3-Clause "New" or "Revised" License
132 stars 34 forks source link

KeyError: 'y' in train_risk_slim.py #14

Open nathandxn opened 3 years ago

nathandxn commented 3 years ago

There is an issue with the y = data['y'] definition

image

nickalewis commented 2 years ago

Hey, nathandxn, I think the issue might be that the y should be capitalized. So instead of 'y', it should be 'Y'

nathandxn commented 2 years ago

@nickalewis correct, I made that change on my end to get it working. I made a PR to update in the project: https://github.com/ustunb/risk-slim/pull/15