MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / plot_image

Function plot_image

bayesian_ml/1/nb.py:109–113  ·  view source on GitHub ↗
(x, Q, title)

Source from the content-addressed store, hash-verified

107 return X[indexes], Y[indexes]
108
109def plot_image(x, Q, title):
110 im = Q.dot(x)
111 plt.imshow(im.reshape(28,28), cmap='gray')
112 plt.title(title)
113 plt.show()
114
115if __name__ == '__main__':
116 Xtrain = pd.read_csv('Xtrain.csv', header=None).as_matrix()

Callers 1

nb.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected