When training logistic regression it goes through iterative process where at each process it calculates weights of x variables and bias value to minimize loss function.
F