Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save n0obcoder/d0cf4118c1ae81c7fa8902be0a5527a9 to your computer and use it in GitHub Desktop.
# Let's now visualize how the synthetic data looks like
plt.scatter(x_list, y_list , color = 'cyan')
plt.plot((x_min, x_max), (m_synthetic*x_min + c_synthetic, m_synthetic*x_max + c_synthetic), color = 'r')
plt.title('Synthetic Data with m = {} and c = {}'.format(m_synthetic, c_synthetic))
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