Svd, Matrix Decomposition, Data Processing, Feature Engineering, Unsupervised Learning.
should capture a lot of the variance in the image. import numpy as np import matplotlib.cm as cm import matplotlib.pyplot as plt k = 1 # change this boat = np.loadtxt('./boat.dat') norm_boat = boat - np.mean(boat, axis=0) u,s,vt=np.linalg.svd(norm_boat) scopy = s.copy() scopy[k:] = 0.0 # setting