py
py copied to clipboard
plot cost funtion
if I want plot cost function take J(m) in y axis and m in x axis ?
import matplotlib.pyplot as plt
import numpy as np
m = np.arange(0,100)
plt.plot(J(m))
plt.show()