if plotting:
self.plotting = plotting
else:
self.plotting = {}
self.symmetrize_type = symmetrize_type
N, d = np.shape(self.Xin)
Xout = self.Xin
After Change
raise ValueError("Weight matrix W is not square")
// Symmetry checks
if np.abs(W - W.T).sum():
if symmetrize_type == "average":
W = (W + W.T) / 2.