egrace479 commited on
Commit
7fa480b
1 Parent(s): c3c671d

Update description to align with renaming for workflow order

Browse files
Files changed (1) hide show
  1. notebooks/Data-gen-1-2.ipynb +5 -4
notebooks/Data-gen-1-2.ipynb CHANGED
@@ -15,8 +15,8 @@
15
  "source": [
16
  "## Summary\n",
17
  "\n",
18
- "We explored our downloaded images in `EDA-DL-0-3.ipynb`, and established the following causes of duplication along with remedies:\n",
19
- "1. The \"patch\" record (record 3477891) which required alignment in `record_3477891_media_occurrence.ipynb`, resulting in `Jiggins_Zenodo_Img_Master_3477891Patch.csv` used for download, is a duplication of all listed records. Additionally, it introduced extra copies of 4 images with incorrect labels for their views (i.e., dorsal vs ventral).\n",
20
  " - Solution: This record will be removed.\n",
21
  "2. The remaining duplication (430 images x2) comes from 5 records: [4291095](https://zenodo.org/records/4291095), [2813153](https://zenodo.org/records/2813153), [5526257](https://zenodo.org/records/5526257), [2553977](https://zenodo.org/records/2553977), and [2552371](https://zenodo.org/records/2552371).\n",
22
  " - Though there is nothing in their descriptions on Zenodo to indicate this overlap occurred, record 4291095 duplicated 415 images from record 2813153. 104 of these images had their view/side labels (dorsal vs ventral) updated to reflect an earlier mislabeling in record 2813153; these were all RAW copies of the images. All other metadata was consistent across records.\n",
@@ -32,11 +32,12 @@
32
  " 3. Reduce to only unique `CAMID`s.\n",
33
  " 4. Generate splits as desired.\n",
34
  " 5. Add images to splits based on matched `CAMID`s if multiple views are desired (i.e., if a `CAMID` is present in the dorsal training, add the matching ventral image to the training set).\n",
 
35
  "\n",
36
  "\n",
37
  "## Generate \"Clean\" Master Metadata File\n",
38
  "\n",
39
- "We'll now generate a cleaned master metadata file from `metadata/Jiggins_Zenodo_Img_Master_3477891Patch_downloaded.csv` (generated in `notebooks/EDA_full_jiggins_DL.ipynb` from our download master file and checksums of successful downloads) following the solutions outlined above. "
40
  ]
41
  },
42
  {
@@ -97,7 +98,7 @@
97
  }
98
  ],
99
  "source": [
100
- "df = pd.read_csv(\"../metadata/Jiggins_Zenodo_Img_Master_3477891Patch_downloaded.csv\", low_memory = False)\n",
101
  "df[STATS_COLS].info()"
102
  ]
103
  },
 
15
  "source": [
16
  "## Summary\n",
17
  "\n",
18
+ "We explored our downloaded images in `../deduplication_process/notebooks/EDA-DL-0-3.ipynb`, and established the following causes of duplication along with remedies:\n",
19
+ "1. The \"patch\" record (record 3477891) which required alignment in `Data-gen-1-1.ipynb`, resulting in `../deduplication_process/Jiggins_Zenodo_Img_Master_3477891Patch.csv` used for download, is a duplication of all listed records. Additionally, it introduced extra copies of 4 images with incorrect labels for their views (i.e., dorsal vs ventral).\n",
20
  " - Solution: This record will be removed.\n",
21
  "2. The remaining duplication (430 images x2) comes from 5 records: [4291095](https://zenodo.org/records/4291095), [2813153](https://zenodo.org/records/2813153), [5526257](https://zenodo.org/records/5526257), [2553977](https://zenodo.org/records/2553977), and [2552371](https://zenodo.org/records/2552371).\n",
22
  " - Though there is nothing in their descriptions on Zenodo to indicate this overlap occurred, record 4291095 duplicated 415 images from record 2813153. 104 of these images had their view/side labels (dorsal vs ventral) updated to reflect an earlier mislabeling in record 2813153; these were all RAW copies of the images. All other metadata was consistent across records.\n",
 
32
  " 3. Reduce to only unique `CAMID`s.\n",
33
  " 4. Generate splits as desired.\n",
34
  " 5. Add images to splits based on matched `CAMID`s if multiple views are desired (i.e., if a `CAMID` is present in the dorsal training, add the matching ventral image to the training set).\n",
35
+ " 6. Be sure to check only desired categories are included, such as excluding hybrids or cross types, or specimens not labeled to the level of classification.\n",
36
  "\n",
37
  "\n",
38
  "## Generate \"Clean\" Master Metadata File\n",
39
  "\n",
40
+ "We'll now generate a cleaned master metadata file from `../deduplication_process/metadata/Jiggins_Zenodo_Img_Master_3477891Patch_downloaded.csv` (generated in `../deduplication_process/notebooks/EDA-DL-0-3.ipynb` from our download master file and checksums of successful downloads) following the solutions outlined above. "
41
  ]
42
  },
43
  {
 
98
  }
99
  ],
100
  "source": [
101
+ "df = pd.read_csv(\"../deduplication_process/metadata/Jiggins_Zenodo_Img_Master_3477891Patch_downloaded.csv\", low_memory = False)\n",
102
  "df[STATS_COLS].info()"
103
  ]
104
  },