Skip to content
Minsing Log
Go back

English Edition

Test code is damn important!

Programming & CS

The SearchQA dataset preprocessing involved creating retrieval ground truth without test code and removing duplicated snippets and null values. However, these null values were hidden in numpy arrays wrapped in dictionaries within individual elements of the dataset, and sometimes there were exceptionally troublesome cases where they appeared not as null values but only as blank spaces such as ” or ’ ’.

Let’s always write code to check whether there are null values and whether the length is correct after each preprocessing step. As the dataset and codebase grew larger, it became increasingly difficult to verify everything by eye, and mistakes became more frequent.

Let’s overcome this with comments and test code~~ If you don’t get the idea, take a look at my repository from time to time.

SearchQA prerpocessing

공개 여정 구독

글이 올라오면 이메일로 보내드릴게요.

개발, 창업, 배움, 실패와 회고를 짧고 솔직하게 기록합니다. 검색으로 스쳐가는 독자가 아니라 여정을 따라오는 팬을 만들기 위한 뉴스레터입니다.

뉴스레터는 준비 중입니다. 그동안 RSS 로 구독하거나 이메일 로 알림을 요청해 주세요.


Share this post:

Comments

Sign in with GitHub to leave a comment.


Previous Post
A new application of list comprehension
Next Post
Why does null appear even though I used concat?