Machine Learning, Python, Towards Data Science, Dimensionality Reduction, Data Visualization.
n_dimensions]) # PCA pca = tf.matmul(self.u, sigma) with tf.Session(graph=self.graph) as session: return session.run(pca, feed_dict={self.X: self.data}) So as you can see reduce gets either keep_info or n_dimensions (I didn’t implement the input check where only one must be supplied). If we supply