In [5]:
nc = 3         # number of classes
W = []         # list for w vectors
M = len(X)     # number of x vectors
N = len(X[0])  # dimensionality of x vectors