Missing parameter in sigmoid function

Hello sir,
I’m getting an error stating that the sigmoid() function called inside the predict() function lacks an argument,‘weights’ … but it’s not necessary as we directly pass in the z value to the function…then why am I getting that error sir?!
Please help me out sir!
Thanks in advance…