Skip to content

KGSF 테스트 시 배치마다 입력 데이터와 evaluation 결과 출력하는 기능 추가#2

Open
krta2 wants to merge 23 commits intoadd-kgsf-test-and-interactfrom
add-print-every-batch
Open

KGSF 테스트 시 배치마다 입력 데이터와 evaluation 결과 출력하는 기능 추가#2
krta2 wants to merge 23 commits intoadd-kgsf-test-and-interactfrom
add-print-every-batch

Conversation

@krta2
Copy link
Copy Markdown

@krta2 krta2 commented Nov 12, 2021

Summary

KGSFSystem.train_recommender 의 테스트 단계에서 배치별로 입력 context 에 대한 데이터와 해당 배치의 성능 평가 결과를 파일로 출력해 어떤 경우에 안 좋은 성능이 나오는지 분석할 수 있도록 합니다.

참고: https://www.notion.so/krta2/Redial-d49644b8e869487187166e130975f708

How to run

python run_crslab.py -c config/crs/kgsf/redial.yaml -t -g 0

TODO

  • 배치마다 입력된 토큰을 문장으로 변환해서 출력 @krta2
  • Conversation 도 출력 @airotod
  • 저장된 모델 사용해서 테스트만 하는 함수 구현 @airotod
  • test 옵션 추가 및 테스트할 때만 배치별 출력 @krta2
  • 문장뿐만 아니라 사용한 word, entity 도 출력하도록 @krta2
  • 결과를 CSV 파일로 출력 @airotod

Add test_print_every_batch option
- add print every batch feature
- add print every batch in rec test
@krta2 krta2 added the WIP Work in progress label Nov 12, 2021
@krta2 krta2 self-assigned this Nov 12, 2021
@krta2 krta2 changed the title Recommendation test 시 배치마다 입력 문장과 evaluation 결과 출력하는 기능 추가 KGSF 테스트 시 배치마다 입력 문장과 evaluation 결과 출력하는 기능 추가 Nov 12, 2021
krta2 and others added 5 commits November 16, 2021 15:28
* Update KGSFSystem

- add test method

* Update QuickStart

- add test for restore_system option

Co-authored-by: airotod <airotod@gmail.com>
* Update kgsf/redial config

- add test_print_every_batch option for conv

* Update BaseDataLoader

- add print every batch feature of conv

* Update KGSFSystem

- add print every batch in conv test
- add print conv response and prediction

Co-authored-by: airotod <airotod@gmail.com>
- remove print every batch feature in train
- test option enable restore_system automatically
@krta2 krta2 changed the title KGSF 테스트 시 배치마다 입력 문장과 evaluation 결과 출력하는 기능 추가 KGSF 테스트 시 배치마다 입력 데이터와 evaluation 결과 출력하는 기능 추가 Nov 16, 2021
print conversation prediction/response only when test_print_every_batch
@krta2 krta2 force-pushed the add-print-every-batch branch from 8d6615e to 0f91563 Compare November 16, 2021 14:30
@krta2 krta2 added the feature label Nov 16, 2021
@krta2 krta2 changed the base branch from main to add-print-batch-and-kgsf-interact November 16, 2021 15:47
@krta2 krta2 changed the base branch from add-print-batch-and-kgsf-interact to main November 16, 2021 15:48
@krta2 krta2 changed the base branch from main to add-kgsf-test-and-interact November 16, 2021 15:49
airotod and others added 7 commits November 17, 2021 12:32
* Update Config

- add path for saving csv

* Update BaseDataLoader

- add write sentence into csv file

* Update StandardEvaluator

- add write metric into csv file

* Update KGSFSystem

- add write test result
- add write prediction and response for conv into csv file

* Update Config

- update path for saving csv

* Update BaseDataLoader

- not log when writing csv file

* Update StandardEvaluator

- not log when writing csv file

* Update KGSFSystem

- update csv path variable name
- not log when writing csv file
- remove unnecessary comment
- print file only in test mode (--test) and test_print_every_batch flag on.
- automatically make file output dir when not exist
@krta2 krta2 removed the WIP Work in progress label Nov 18, 2021
@krta2
Copy link
Copy Markdown
Author

krta2 commented Nov 24, 2021

Baseline 테스트 결과 CSV 파일

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants