Was macht .shape [] in "für i in range (Y.shape [0])"?
Ich versuche, ein Programm zeilenweise aufzuschlüsseln.Y
ist eine Matrix von Daten, aber ich kann keine konkreten Daten darüber finden, was.shape[0]
genau macht.
<code>for i in range(Y.shape[0]): if Y[i] == -1: </code>
Dieses Programm verwendet numpy, scipy, matplotlib.pyplot und cvxopt.