Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save n0obcoder/f75c7cfb1882c33e7bf7fffb94087835 to your computer and use it in GitHub Desktop.

Select an option

Save n0obcoder/f75c7cfb1882c33e7bf7fffb94087835 to your computer and use it in GitHub Desktop.
plt.scatter(x_list, y_list , color = 'cyan')
plt.plot((x_min, x_max), (m_learnt*x_min + c_learnt, m_learnt*x_max + c_learnt), color = 'r')
plt.title('Synthetic Data Points, with m = {} and c = {}'.format(round(m_learnt, 2), round(c_learnt, 2)))
plt.xlabel("Independent Variable 'x'")
plt.ylabel("Dependent Variable 'y'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment