Challenge- Chemical Segregation

I am not able to understand this error.


Where I am going wrong ?

Hello @S18LPC-OL0076,
What exactly is the error that you are facing, if possible, kindly share a screenshot of the error traceback.
Thanks :slight_smile:

Hey @Manu-Pillai-1566551720093198,
Please see the code that I have shared above. The error message is there at the end of it.

Hello @S18LPC-OL0076,
I can see you have initialized your weights and bias as 2*np.eye(X.shape[1]) and 5*np.eye(X.shape[1]). As I can infer from your code, you are implementing logistic regression and in logistic regression, the weights are not a diagonal matrix and is of shape 3,1 and 1,1 respectively for your case.
Can you change that and check if the error is resolved.

Happy Learning :slight_smile:
Thanks

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.