diff --git a/Microfaune_Local_Score_Package_Tutorial.ipynb b/Microfaune_Local_Score_Package_Tutorial.ipynb index 626787b..78fe500 100644 --- a/Microfaune_Local_Score_Package_Tutorial.ipynb +++ b/Microfaune_Local_Score_Package_Tutorial.ipynb @@ -23,7 +23,15 @@ "metadata": {}, "outputs": [], "source": [ - "path = \"./TEST/\"\n", + "path = \"./TEST/\"" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [], + "source": [ "automated_df = calc_local_scores(path)" ] }, @@ -36,7 +44,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -105,7 +113,7 @@ "
\n", + " | FOLDER | \n", + "IN FILE | \n", + "TRUE POSITIVE | \n", + "FALSE NEGATIVE | \n", + "FALSE POSITIVE | \n", + "PRECISION | \n", + "RECALL | \n", + "F1 | \n", + "
---|---|---|---|---|---|---|---|---|
0 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "1 | \n", + "4 | \n", + "4 | \n", + "0.2 | \n", + "0.2 | \n", + "0.2 | \n", + "
\n", + " | FOLDER | \n", + "IN FILE | \n", + "TRUE POSITIVE | \n", + "FALSE NEGATIVE | \n", + "FALSE POSITIVE | \n", + "PRECISION | \n", + "RECALL | \n", + "F1 | \n", + "
---|---|---|---|---|---|---|---|---|
0 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "1 | \n", + "4 | \n", + "2 | \n", + "0.3333 | \n", + "0.2 | \n", + "0.25 | \n", + "
1 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190623_222000.WAV | \n", + "0 | \n", + "1 | \n", + "3 | \n", + "0.0000 | \n", + "0.0 | \n", + "0.00 | \n", + "
2 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "BlackFacedAntbird1.wav | \n", + "0 | \n", + "4 | \n", + "7 | \n", + "0.0000 | \n", + "0.0 | \n", + "0.00 | \n", + "
3 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "HowlerMonkey1.WAV | \n", + "0 | \n", + "3 | \n", + "10 | \n", + "0.0000 | \n", + "0.0 | \n", + "0.00 | \n", + "
4 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "7 | \n", + "3 | \n", + "0.0000 | \n", + "0.0 | \n", + "0.00 | \n", + "
5 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "5 | \n", + "5 | \n", + "0.0000 | \n", + "0.0 | \n", + "0.00 | \n", + "
\n", + " | TRUE POSITIVE | \n", + "FALSE NEGATIVE | \n", + "FALSE POSITIVE | \n", + "PRECISION | \n", + "RECALL | \n", + "F1 | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "1 | \n", + "24 | \n", + "30 | \n", + "0.0323 | \n", + "0.04 | \n", + "0.0357 | \n", + "
\n", + " | FOLDER | \n", + "IN FILE | \n", + "CHANNEL | \n", + "CLIP LENGTH | \n", + "OFFSET | \n", + "DURATION | \n", + "MANUAL ID | \n", + "IoU | \n", + "
---|---|---|---|---|---|---|---|---|
0 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "0.000 | \n", + "9.700 | \n", + "1 | \n", + "0.2848 | \n", + "
1 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "11.500 | \n", + "16.675 | \n", + "1 | \n", + "0.4896 | \n", + "
2 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "29.500 | \n", + "15.000 | \n", + "1 | \n", + "0.4345 | \n", + "
3 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "48.525 | \n", + "1.000 | \n", + "1 | \n", + "0.0000 | \n", + "
4 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "50.500 | \n", + "8.000 | \n", + "1 | \n", + "0.8444 | \n", + "
5 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190623_222000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "14.500 | \n", + "12.500 | \n", + "1 | \n", + "0.6778 | \n", + "
6 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "BlackFacedAntbird1.wav | \n", + "0 | \n", + "31.200000 | \n", + "0.000 | \n", + "4.100 | \n", + "1 | \n", + "0.3344 | \n", + "
7 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "BlackFacedAntbird1.wav | \n", + "0 | \n", + "31.200000 | \n", + "5.000 | \n", + "1.500 | \n", + "1 | \n", + "0.3447 | \n", + "
8 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "BlackFacedAntbird1.wav | \n", + "0 | \n", + "31.200000 | \n", + "9.800 | \n", + "5.200 | \n", + "1 | \n", + "0.2836 | \n", + "
9 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "BlackFacedAntbird1.wav | \n", + "0 | \n", + "31.200000 | \n", + "21.500 | \n", + "5.500 | \n", + "1 | \n", + "0.1914 | \n", + "
10 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "HowlerMonkey1.WAV | \n", + "0 | \n", + "60.000000 | \n", + "0.000 | \n", + "10.900 | \n", + "1 | \n", + "0.4410 | \n", + "
11 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "HowlerMonkey1.WAV | \n", + "0 | \n", + "60.000000 | \n", + "11.500 | \n", + "13.000 | \n", + "1 | \n", + "0.1556 | \n", + "
12 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "HowlerMonkey1.WAV | \n", + "0 | \n", + "60.000000 | \n", + "25.000 | \n", + "34.900 | \n", + "1 | \n", + "0.1637 | \n", + "
13 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "1.200 | \n", + "0.450 | \n", + "1 | \n", + "0.0000 | \n", + "
14 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "4.000 | \n", + "0.300 | \n", + "1 | \n", + "0.0000 | \n", + "
15 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "7.400 | \n", + "0.600 | \n", + "1 | \n", + "0.0512 | \n", + "
16 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "10.500 | \n", + "0.800 | \n", + "1 | \n", + "0.1566 | \n", + "
17 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "20.800 | \n", + "0.500 | \n", + "1 | \n", + "0.0000 | \n", + "
18 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "28.000 | \n", + "0.400 | \n", + "1 | \n", + "0.0000 | \n", + "
19 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "34.000 | \n", + "1.000 | \n", + "1 | \n", + "0.0000 | \n", + "
20 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "0.000 | \n", + "5.373 | \n", + "1 | \n", + "0.4394 | \n", + "
21 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "10.590 | \n", + "5.585 | \n", + "1 | \n", + "0.4412 | \n", + "
22 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "22.000 | \n", + "4.000 | \n", + "1 | \n", + "0.7331 | \n", + "
23 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "27.200 | \n", + "0.900 | \n", + "1 | \n", + "0.2690 | \n", + "
24 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "29.000 | \n", + "4.500 | \n", + "1 | \n", + "0.4809 | \n", + "
\n", + " | FOLDER | \n", + "IN FILE | \n", + "CHANNEL | \n", + "CLIP LENGTH | \n", + "OFFSET | \n", + "DURATION | \n", + "MANUAL ID | \n", + "Catch | \n", + "
---|---|---|---|---|---|---|---|---|
0 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "0.000 | \n", + "9.700 | \n", + "1 | \n", + "1.0000 | \n", + "
1 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "11.500 | \n", + "16.675 | \n", + "1 | \n", + "1.0000 | \n", + "
2 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "29.500 | \n", + "15.000 | \n", + "1 | \n", + "0.7885 | \n", + "
3 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "48.525 | \n", + "1.000 | \n", + "1 | \n", + "0.0000 | \n", + "
4 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "50.500 | \n", + "8.000 | \n", + "1 | \n", + "0.8444 | \n", + "
5 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190623_222000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "14.500 | \n", + "12.500 | \n", + "1 | \n", + "0.6778 | \n", + "
6 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "BlackFacedAntbird1.wav | \n", + "0 | \n", + "31.200000 | \n", + "0.000 | \n", + "4.100 | \n", + "1 | \n", + "0.6448 | \n", + "
7 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "BlackFacedAntbird1.wav | \n", + "0 | \n", + "31.200000 | \n", + "5.000 | \n", + "1.500 | \n", + "1 | \n", + "0.8951 | \n", + "
8 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "BlackFacedAntbird1.wav | \n", + "0 | \n", + "31.200000 | \n", + "9.800 | \n", + "5.200 | \n", + "1 | \n", + "0.4523 | \n", + "
9 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "BlackFacedAntbird1.wav | \n", + "0 | \n", + "31.200000 | \n", + "21.500 | \n", + "5.500 | \n", + "1 | \n", + "0.4737 | \n", + "
10 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "HowlerMonkey1.WAV | \n", + "0 | \n", + "60.000000 | \n", + "0.000 | \n", + "10.900 | \n", + "1 | \n", + "0.8562 | \n", + "
11 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "HowlerMonkey1.WAV | \n", + "0 | \n", + "60.000000 | \n", + "11.500 | \n", + "13.000 | \n", + "1 | \n", + "0.4616 | \n", + "
12 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "HowlerMonkey1.WAV | \n", + "0 | \n", + "60.000000 | \n", + "25.000 | \n", + "34.900 | \n", + "1 | \n", + "0.6903 | \n", + "
13 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "1.200 | \n", + "0.450 | \n", + "1 | \n", + "0.0000 | \n", + "
14 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "4.000 | \n", + "0.300 | \n", + "1 | \n", + "0.0000 | \n", + "
15 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "7.400 | \n", + "0.600 | \n", + "1 | \n", + "0.4630 | \n", + "
16 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "10.500 | \n", + "0.800 | \n", + "1 | \n", + "1.0000 | \n", + "
17 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "20.800 | \n", + "0.500 | \n", + "1 | \n", + "0.0000 | \n", + "
18 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "28.000 | \n", + "0.400 | \n", + "1 | \n", + "0.0000 | \n", + "
19 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "20190624_152000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "34.000 | \n", + "1.000 | \n", + "1 | \n", + "0.0000 | \n", + "
20 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "0.000 | \n", + "5.373 | \n", + "1 | \n", + "1.0000 | \n", + "
21 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "10.590 | \n", + "5.585 | \n", + "1 | \n", + "0.7344 | \n", + "
22 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "22.000 | \n", + "4.000 | \n", + "1 | \n", + "1.0000 | \n", + "
23 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "27.200 | \n", + "0.900 | \n", + "1 | \n", + "1.0000 | \n", + "
24 | \n", + "/home/jacob/Acoustic-Species-Identification/pa... | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "29.000 | \n", + "4.500 | \n", + "1 | \n", + "0.7588 | \n", + "
\n", + " | FOLDER | \n", + "IN FILE | \n", + "CHANNEL | \n", + "CLIP LENGTH | \n", + "SAMPLE RATE | \n", + "OFFSET | \n", + "DURATION | \n", + "MANUAL ID | \n", + "
---|---|---|---|---|---|---|---|---|
0 | \n", + "./TEST/ | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "44100 | \n", + "0.301565 | \n", + "0.139184 | \n", + "1 | \n", + "
1 | \n", + "./TEST/ | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "44100 | \n", + "0.904694 | \n", + "9.603673 | \n", + "1 | \n", + "
2 | \n", + "./TEST/ | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "44100 | \n", + "10.833129 | \n", + "0.742313 | \n", + "1 | \n", + "
3 | \n", + "./TEST/ | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "44100 | \n", + "11.645034 | \n", + "0.023197 | \n", + "1 | \n", + "
4 | \n", + "./TEST/ | \n", + "20190622_210000.WAV | \n", + "0 | \n", + "60.000000 | \n", + "44100 | \n", + "11.830612 | \n", + "0.139184 | \n", + "1 | \n", + "
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
163 | \n", + "./TEST/ | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "44100 | \n", + "27.999116 | \n", + "0.185578 | \n", + "1 | \n", + "
164 | \n", + "./TEST/ | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "44100 | \n", + "28.231088 | \n", + "0.092789 | \n", + "1 | \n", + "
165 | \n", + "./TEST/ | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "44100 | \n", + "29.089388 | \n", + "0.162381 | \n", + "1 | \n", + "
166 | \n", + "./TEST/ | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "44100 | \n", + "32.313810 | \n", + "0.069592 | \n", + "1 | \n", + "
167 | \n", + "./TEST/ | \n", + "ScreamingPiha2.wav | \n", + "0 | \n", + "33.933061 | \n", + "44100 | \n", + "32.452993 | \n", + "0.115986 | \n", + "1 | \n", + "
168 rows × 8 columns
\n", + "