Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 58aac11

Browse files
authored
Merge pull request #11 from rearley516/patch-3
Column names
2 parents 5f45362 + 19026c2 commit 58aac11

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Tutorials/Clean_Validate.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Human generated labels cover 20% of the total images in the dataset.
1818
```python
1919
import pandas as pd
2020
import numpy as np
21-
human_label = "/content/drive/My Drive/Colab Notebooks/DS440_data/ladi_aggregated_responses.tsv"
21+
human_label = "/content/drive/My Drive/Colab Notebooks/DS440_data/ladi_aggregated_responses_url.tsv"
2222
file = pd.read_csv(human_label,delimiter='\t',header='infer')
2323
```
2424

@@ -32,9 +32,9 @@ Human generated labels cover 20% of the total images in the dataset.
3232

3333
- Fields:
3434

35-
- *img_url*
35+
- *url*
3636
- *WorkerId*
37-
- *Answer :* Dataset contains 495 categories
37+
- *Answer* Dataset contains 495 categories
3838

3939
- Answer outputs are similar to the following:
4040

@@ -64,12 +64,12 @@ For this project, we will only consider 'damage' and 'infrastructure' labels.
6464
```
6565
6. Extract url data with the label does contain 'flood'
6666
```python
67-
im_flood_lst = label_flood['img_url'].unique().tolist()
67+
im_flood_lst = label_flood['url'].unique().tolist()
6868
```
6969
7. Extract url data with the label does not contain 'flood'
7070
```python
7171
label_notflood = label_damage_infra[~label_damage_infra['img_url'].isin(im_flood_lst)]
72-
im_not_flood_lst = label_notflood['img_url'].unique().tolist()
72+
im_not_flood_lst = label_notflood['url'].unique().tolist()
7373
```
7474
8*. (Optional) Write list into csv file
7575

0 commit comments

Comments
 (0)