Already spent an hour to debug still can’t find what’s wrong here ?
Can you share link to your code?
x in code below to capital
if display_loss: Y_pred = self.sigmoid(self.perceptron(x))
After fixing this, it will throw another error for loss.values()
if display_loss: plt.plot(loss.values())
you can fix it by wrapping loss.values() inside list()
if display_loss: plt.plot(list(loss.values()))
yes its working fine now. Thank you so much for your time.