I am trying to visualize Logistic Regression on the training data set and here's the snippet of code when running encounters ('numpy.ndarray' object is not callable) error.

How to fix this?

`for i,j in enumerate(np.unique(Y_set)):
 plt.scatter(X_set(Y_set == j,0), X_set(Y_set == j, 1),
 c=ListedColormap(('red','green'))(i),label = j)`