0

I am using the Kaggle's Twitter Dataset and I am trying to oversample the minority class.

Despite y being binary, the oversampler returns an error stating that it is multi-class

enter image description here

My x and y are the tweets and the labels respectively.

Randy Chng
  • 103
  • 5
  • Please don't post images of code/errors. See [How do I ask a good question?](https://stackoverflow.com/help/how-to-ask) for more tips. – rickhg12hs Dec 20 '21 at 09:29

1 Answers1

0

I figured it out, I had to do reshape(-1,1) instead or (1,-1)

Randy Chng
  • 103
  • 5