Computational Thinking, Python, Linear Algebra, Math, Mathematics.
point of this column. It can be used to center the data points around 0. def centerData(X): X = X.copy() X -= np.mean(X, axis = 0) return X So let’s center our data X around 0 for both dimensions: X_centered = centerData(X) plt.plot(X_centered[:,0], X_centered[:,1], '*') plt.show() That’s better!