Created
June 20, 2019 20:21
-
-
Save n0obcoder/4af01667522c0445526590a0034d840e to your computer and use it in GitHub Desktop.
This file contains 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
# setting the color of all the data points to 'Gray' at the beginning | |
initial_data_point_color = 'Gray' | |
display_kcenters(kcenters) | |
plt.scatter(x_data, y_data, color = initial_data_point_color) | |
plt.title('before kMeans Clustering') | |
plt.xlabel('Some Feature x') | |
plt.ylabel('Some Feature y') | |
plt.grid() | |
plt.savefig(results_dir + '/before_kmeans.jpg') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment