Created
July 9, 2021 06:02
-
-
Save VedPDubey/b6fca48abf9ebf5aed38252cfbe1a6d4 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
n_labels = labels.shape[0] | |
_, count = np.unique(labels, return_counts=True) | |
df = pd.DataFrame(data = count) | |
df['Class Label'] = class_names | |
df.columns = ['Count','Class-Label'] | |
df.set_index('Class-Label',inplace=True) | |
df |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment