Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 8, 2020 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/4533e8abef8857e12732c621904a90fb to your computer and use it in GitHub Desktop.
Save amankharwal/4533e8abef8857e12732c621904a90fb to your computer and use it in GitHub Desktop.
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