I am attaching the screenshot of the code as its not working for test data its showing error.
https://drive.google.com/file/d/1cNpLZaeBGzDcutJLZ-c7ENky8Kv_tGJC/view?usp=sharing
I am attaching the screenshot of the code as its not working for test data its showing error.
https://drive.google.com/file/d/1cNpLZaeBGzDcutJLZ-c7ENky8Kv_tGJC/view?usp=sharing
hey @gauthampkrishnan ,
it seems to be a error in your target y and predicted y shapes. Kindly have a look at them and if still you can’t get it , then kindly provide me with a link to your code file , so that i can have a look and understand what is the problem.
Thank You.
I was unable to solve that error please help here is the link to the code and test and trainining files https://github.com/gauthampkrishnan/Air_Pollution_Prediction_Multilabel_Regression/blob/master/Air_Pollution.ipynb
hey @gauthampkrishnan ,
Gradient Descent to train our model to find patterns while training on a dataset , not on testing.
Gradient Descent requires two parameters features( X ) and target ( Y ) which is only available in training data , to get predictions you just need to use ,
hypothesis(df2,theta)
as it returns y_ which you requires.
y_test = gradient_descent(df2,theta)
in this above code of line you are providing your theta values as to be the y ( target variable ) and hence you receive different shapes error as X is of 400 in length and theta is only 6.
I hope this would have resolved your doubt.
Thank You and Happy Learning .
Everything is solved and its worrking it was the problem with submision format i forogt to check submission.csv file thanks for your help