Step 3:

1.predict
Step 4:

1.regularization logic regression