Your y
is of type object
, so sklearn cannot recognize its type. Add the line y=y.astype('int')
right after the line y = train[:, 1]
.
For further actions, you may consider blocking this person and/or reporting abuse
Your y
is of type object
, so sklearn cannot recognize its type. Add the line y=y.astype('int')
right after the line y = train[:, 1]
.
For further actions, you may consider blocking this person and/or reporting abuse
Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.
Bruh Buh -
Bruh Buh -
Mike Young -
Mike Young -
Top comments (0)