Closed 100jy closed 6 months ago
코드가 명확하지 않은 부분에 주석 추가했습니다.
노트북 예제에서 안쓰는 코드 지워뒀습니다.
점수 계산용 함수 추가 했습니다. (아래 예시 참조)
params = {...} model = Transformer(**params) p_data = Patient(...) d_data = Disease(...) >>> model.get_score_from_pairs(p_data, d_data) {("EPJ22-HCGX", "OMIM:607151"): 0.93847} >>> model.get_score_from_pairs([Patient(...), Patient(...)], Disease(...), cross=True) {("EPJ22-HCGX", "OMIM:607151"): 0.93847, ("EPJ22-AVTG", "OMIM:607151"): 0.42547} >>> model.get_score_from_pairs([Patient(...), Patient(...)], [Disease(...), Disease(...)], cross=False) {("EPJ22-HCGX", "OMIM:607151"): 0.93847, ("EPJ22-AVTG", "OMIM:219000"): 0.58547}
코드가 명확하지 않은 부분에 주석 추가했습니다.
노트북 예제에서 안쓰는 코드 지워뒀습니다.
점수 계산용 함수 추가 했습니다. (아래 예시 참조)