MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / plot_image

Function plot_image

bayesian_ml/2/probit.py:92–96  ·  view source on GitHub ↗
(x, Q, title)

Source from the content-addressed store, hash-verified

90 return X[indexes], Y[indexes]
91
92def plot_image(x, Q, title):
93 im = Q.dot(x)
94 plt.imshow(im.reshape(28,28), cmap='gray')
95 plt.title(title)
96 plt.show()
97
98if __name__ == '__main__':
99 Xtrain = pd.read_csv('Xtrain.csv', header=None).as_matrix()

Callers 2

fitMethod · 0.70
probit.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected