Air Pollution Challenge

Here is my ipynb file
https://drive.google.com/file/d/1JHfq_2ty2S8wCu51_UsKR1zuIfmFlPqi/view?usp=sharing
it showing errored message after submitting

Hey @naazsayma123, try submitting the file again and make sure you have followed the format of the output file as mentioned in the problem statement. If the problem still persists, please write to [email protected]. Also do attach the screenshot of the error message in your email. Our team will reach out to you shortly.

I hope this clears your doubt ! :+1:
Happy Learning ! :slightly_smiling_face:

@Aayushkh_333
In my program the shape of X_test is ((400, 5) but for Y_test i am getting the shape of (1600,)) not ((400,)).
Can you please tell me where I am going wrong

Hey @naazsayma123, can you tell me how have you created Y_test in your code ? I guess you should read the test file and assign it’s last column as Y_test.

Let me know if there is any issue you are facing again !

Happy Learning ! :slightly_smiling_face:

@Aayushkh_333
I am doing this- Y_test=hypothesis(X_test,theta)

Can you print the shapes of X_test and theta in code and tell me what are they coming ?

Shape of X_test is (400,5)
and shape of theta is (6,)

Yeah so now you can realise your mistake there right ? When you call hypothesis(X_test,theta) in your code, the dot product is not correct as the shape of X_test should also be (400,6). Only then you can take it’s dot product with theta of shape (6,). So please add an additional column of ones in X_test like you have done for X to make it of shape (400,6).

I hope this clears your doubt ! :slightly_smiling_face:
Happy Coding ! :+1:

Okay, now i got it
thank you

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.