How to get rid of the "unknown label type error" when performing a Univariate Feature selection on the multilabel 'Chicago crimes dataset'?

Viewed 11

I am trying to perform a Univariate Feature selection before I can do a an RFE on the multilabel 'Chicago crimes dataset' but I keep getting Errors "unknown label type error", I've split the dataset into an x, y array and fit them on the code test = SelectKBest(score_func=chi2, k=7) fit = test.fit(x, y) and I've also tried using a train_test_split which is also giving an error. Please help rectify this.https://i.stack.imgur.com/RAqZh.jpg https://i.stack.imgur.com/regJj.jpg

0 Answers
Related