C1 W3 Logistic Regression

Hi, I have a question about Exercise 3 of C1 W3 Logistic Regression assignment. What is the purpose of err variable presented in code scaffolding?

Hello @conscell, thank you for the question! I think err is not needed there. I will report this to the staff.

Dear rmwkwok,
C1_W3 programming assignment included 6 exercises
1- sigmoid it’s fine no problem.
2,3 compute_cost and compute_gredient there is an argument lamda_ which is not inside the compute_cost and compute_gredient code?
4-the predict is totally different from the sklearn lab?
5,6 both computer_cost_reg and compute_gradinet_reg without mentioning whether linear regression or logistic regression.
Your help is appreciated.
ihab

Hi @Ihab_Ahmed_najm ,

Yes! They are not used. And it’s also mentioned in the doc string of the function, so it is intended. Please just ignore them. They shouldn’t cause us any problem.

Screenshot from 2022-07-06 23-24-27

I think you are referring to Optional lab: Logistic regression with scikit-learn.
Yes, they are different implementation. I think sklearn offers more sophisticated algorithm than ours. Ours is the basic and also useful algorithm.

The whole assignment is about logistic regression. You can look at the title of the jupyter notebook :slight_smile:

Cheers!
Raymond

Dear Raymond,
I’m totally confused!
regarding 2,3 requests of C1_W3 programming assignment which lab do I’ve to follow? because the exercise requests contained variants than week3 lab there are many labs related cost_funcation and gradinet_function?
Moreover, I’ve read the assignment title but the 5,6 exercise is totally different from the lab of logistic regression.
Would you guide me on which lab I’ve to follow to pass the final course1 test…
Cheers

Hi @Ihab_Ahmed_najm,

Under each exercise there is a “Click for hints” button which can give you some ideas!

Screenshot from 2022-07-06 23-54-08

Raymond