py icon indicating copy to clipboard operation
py copied to clipboard

plot cost funtion

Open khaldon opened this issue 7 years ago • 1 comments

if I want plot cost function take J(m) in y axis and m in x axis ?

khaldon avatar Jan 15 '19 16:01 khaldon

import matplotlib.pyplot as plt
import numpy as np
m = np.arange(0,100)
plt.plot(J(m))
plt.show()

QuantumNovice avatar Feb 21 '19 19:02 QuantumNovice