boostcampaitech2 / image-classification-level1-08

image-classification-level1-08 3rd Place!
7 stars 3 forks source link

Generate pseudolabel_dataset.csv #27

Open lsh3163 opened 3 years ago

lsh3163 commented 3 years ago

new dataset : pseudo_dataset.csv

import pandas as pd

df = pd.read_csv("./submission.csv")

train = pd.read_csv("./standard.csv")

new_train = pd.DataFrame()
new_train["path"] = "../input/data/eval/images/" + df["ImageID"]
new_train["label"] = df["ans"]

all_data = pd.concat([train, new_train], axis=0, ignore_index=True, sort=False)
all_data.to_csv("./pseudo_dataset.csv", index=False)