Created
January 30, 2021 17:49
-
-
Save GeorgeSeif/382e8459e6c87571ca4173cb17782cf5 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
clf = KMeans(n_clusters=10) | |
s = time.time() | |
clf.fit(x_train) | |
e = time.time() | |
print("Training time = {}".format(e - s)) | |
s = time.time() | |
clf.predict(x_test) | |
e = time.time() | |
print("Prediction time = {}".format((e - s) / len(y_test))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment