healthcareai-py icon indicating copy to clipboard operation
healthcareai-py copied to clipboard

If one chooses regression and pred col is binary, throw error

Open levithatcher opened this issue 8 years ago • 2 comments

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

levithatcher avatar Oct 29 '16 18:10 levithatcher

While working on a fix for this problem I discovered a few related problems:

  1. a classification run on a non-binary column
  2. a classification run on a binary column who's unique values are not 'Y' and 'N' (for example: GenderFLG)
  3. 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.

Aylr avatar Nov 21 '16 06:11 Aylr

Relates to #265

Aylr avatar Jun 03 '17 20:06 Aylr