Author | Message |
---|---|
Japaric4
Posts: 6
|
Posted 14:24 Oct 29, 2016 |
Hi, not sure if anyone has encountered this error before but the error I'm getting is: ValueError: Unknown label type: 'continuous'. Below is a screenshot of the terminal with more details, thanks. |
Miro138
Posts: 22
|
Posted 15:43 Oct 29, 2016 |
Had the same issue with this assignment. I think it has to do with the type that the label is being considered. I ended up changing the dtype of the array but not sure if that's correct. Used this for reference : http://stackoverflow.com/questions/20722986/multinomialnb-error-unknown-label-type Ended up with something like y = np.asarray(data[ ??:??] , dtype="|S6") Seems to work for me. |
Japaric4
Posts: 6
|
Posted 15:48 Oct 29, 2016 |
That solved it for me, thanks! |