I am getting an error please helpppp

I am getting the following error I will share the link of the images of the code and the error

https://drive.google.com/folderview?id=1K5gacrUIbUrEyBdKw9DWbHRVB9hxhZ9t

Hi @gauthampkrishnan,

Can you try printing the shape of y and y_ in the error function? Check if there is a dimensional mismatch. Also pass both X and y as numpy arrays not DataFrames (You’ll avoid many errors in the future by doing so, not compulsory though).

But inorder to get y_ we need to run the main function right but its not running i will share the github repo please check and help me out here is the link to the repo https://github.com/gauthampkrishnan/Air_Pollution_Prediction_Multilabel_Regression/blob/master/Air_Pollution_Prediction.ipynb

Hi @gauthampkrishnan,
I went through the repo and felt like the code is working now. Am I correct or is the original issue still present?

Solved thanks for your help

1 Like