maygodwithu / mz_interpret

0 stars 0 forks source link

스크립트 실행방법 #1

Open maygodwithu opened 4 years ago

maygodwithu commented 4 years ago

1. 데이터 만들기

maketriple

2. train - 30epoch

python3 snrm.py ( tutorial/ranking) python3 match_pyramid.py (tutorial/ranking)

3. stat

python3 interpret_snrm.py ( 파일안에서 stat 을 부르도록 수정해야 한다.)

4. gradXinput

python3 interpret_snrm.py ( 파일 안에서 grad..)

5 gradCam

python3 interpret_match_pyramid.py ( gradCam 호출)

maygodwithu commented 4 years ago

1. 그림 그리기 ( heatmap, interaction map, join map ) - visual folder에 있다.

make_heatmap.py 592 592번째 output을 가지고 heatmap을 gray color로 그린다. 이때 내부 스크립트를 수정해서 y-tick이 있는 것과 없는 것을 나누어 그릴 수 있다. 합치기 위해서는 y-tick이 없어야 한다.

show_cam.py 592 ( 여기서 query도 같이 뽑아낸다. ) 이게 cam을 그리는 파일이다.

join_cam.py 592 이게 heatmap과 cap을 합친다.

maygodwithu commented 4 years ago

1. 스니펫 구하기

python3 make_snippet.py 9537 ( validation set 전체에서 sniipet구하고 차이나는것 고르기 : test_all_snippet.py )

2. kurtois 구하기 & 잘된 결과물 찾기

python3 compare_cam.py > not_in_query.result --> 특이하게 높은 cam 값이 있는것 찾는다. kurt_posneg.py --> kurtsis와 sum of cam value의 boxplot을 그린다.

3. marginal d term 구하기 - cam과 cross를 각각 marginal해서 document term을 보여준다.

python3 margin_dterm.py 953

4. term-wise d term 구하기

python3