C1_W3_Logistic_Regression_TypeError on uneditable code

Hello,

I am Toufiq Aziz. There is an error in the Supervised Machine Learning: Regression and Classification third week’s assignment which is unable to edit. Here is what the error says.


TypeError Traceback (most recent call last)
in
5 initial_b = 0.
6 cost = compute_cost(X_train, y_train, initial_w, initial_b)
----> 7 print(‘Cost at initial w and b (zeros): {:.3f}’.format(cost))

TypeError: unsupported format string passed to NoneType.format

Hi @Toufiq_Aziz,

It seems like the function compute_cost is returning None to the variable cost that’s why formatting on None won’t work. Try to print the variable cost.

To edit any cell select View on menubar → Cell ToolBar → Edit Metadata and Change the key editable to true.

Regards,
Mujassim

Hello Mujassim,

Thank you so much for th guidanc.

I have tried to change the code but I already mentioned that the code is uneditable, specifically in that part of the coding.

Best Regards
Toufiq Aziz

You have to select that specific cell and follow the above steps that i mentioned.

I edited my previous response , Please have a look.

Hello Mujassim Jamal,

I have solved the problem but a new problem occurred in the third exercise. I am showing you the screenshot. Please have a look.

Best Regards,
TOUFIQ AZIZ

Hi @Toufiq_Aziz,

Please double check your implementation of compute_gradient function.

You can use the provided hints in the lab notebook for the guidance.

Best Regards,
Mujassim

Hello Mujassim_Jamal,

Thank you for your kind guidance. I have successfully completed the course.

Best Regards,
TOUFIQ AZIZ

@Toufiq_Aziz , Congratulations :partying_face::partying_face: on completing the first course of your specialization! If you have any questions or concerns as you move forward with the second course, feel free to ask me anything. I’ll do my best to assist you and provide you with the guidance you need to succeed. Good luck with your studies!

Best,
Mujassim