Created
August 28, 2019 20:13
-
-
Save n0obcoder/d0cf4118c1ae81c7fa8902be0a5527a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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