healthcareai-py
healthcareai-py copied to clipboard
If one chooses regression and pred col is binary, throw error
This is the current unhelpful message: ValueError: Unable to parse string "N" at position 0
Set error (with helpful message) when classification is chosen and pred col is numeric
While working on a fix for this problem I discovered a few related problems:
- a classification run on a non-binary column
- a classification run on a binary column who's unique values are not 'Y' and 'N' (for example: GenderFLG)
- a regression run on a column containing non-numeric data
I'm wondering if it is good enough for now to cover the original issue and the identified issue 1 above, and simple print a helpful error for 2, 3.
Relates to #265