Skip to content
Snippets Groups Projects
Commit 317fed95 authored by Paul Best's avatar Paul Best
Browse files

add humpback

parent ec9790c1
No related branches found
No related tags found
No related merge requests found
...@@ -11,3 +11,5 @@ otter/pone.0112562.s003.xlsx ...@@ -11,3 +11,5 @@ otter/pone.0112562.s003.xlsx
zebra_finch/Library_notes.pdf zebra_finch/Library_notes.pdf
annot_distrib.pdf annot_distrib.pdf
annot_distrib.tex annot_distrib.tex
humpback/annot
humpback_CARIMAM/
...@@ -3,5 +3,5 @@ bengalese_finch2 ...@@ -3,5 +3,5 @@ bengalese_finch2
california_thrashers california_thrashers
cassin_vireo cassin_vireo
black-headed_grosbeaks black-headed_grosbeaks
humpback2 humpback
zebra_finch zebra_finch
humpback/humpback.csv 100755 → 100644
+ 7501
515776
View file @ 317fed95
This diff is collapsed.
...@@ -12,10 +12,10 @@ plt.tight_layout() ...@@ -12,10 +12,10 @@ plt.tight_layout()
plt.savefig('annot_distrib.pdf') plt.savefig('annot_distrib.pdf')
a = "Specie & \# Classes & \# Annotated samples & \# Samples \\\\ \hline \n" a = "Specie & \# Classes & \# Annotated samples & \# Samples & Proportion of annotations\\\\ \hline \n"
for specie in species: for specie in species:
df = pd.read_csv(f'{specie}/{specie}.csv') df = pd.read_csv(f'{specie}/{specie}.csv')
a += f"{specie.replace('_',' ')} & {df.label.nunique()} & {(~df.label.isna()).sum()} & {len(df)} \\\\ \hline \n" a += f"{specie.replace('_',' ')} & {df.label.nunique()} & {(~df.label.isna()).sum()} & {len(df)} & {int(100*(~df.label.isna()).sum()/len(df))} \\\\ \hline \n"
f = open('annot_distrib.tex', 'w') f = open('annot_distrib.tex', 'w')
f.write(a) f.write(a)
f.close() f.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment