-
-
Save amankharwal/4533e8abef8857e12732c621904a90fb 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
print("Amount of classes with five and less datapoints:", (data['count'].between(0,5)).sum()) | |
print("Amount of classes with with between five and 10 datapoints:", (data['count'].between(5,10)).sum()) | |
n = plt.hist(df["landmark_id"],bins=df["landmark_id"].unique()) | |
freq_info = n[0] | |
plt.xlim(0,data['landmark_id'].max()) | |
plt.ylim(0,data['count'].max()) | |
plt.xlabel('Landmark ID') | |
plt.ylabel('Number of images') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment