dspy.evaluate.SemanticF1

dspy.evaluate.SemanticF1

이 페이지는 DSPy의 의미론적 F1 메트릭인 SemanticF1을 다뤄요. 단순 문자열 일치 대신, 예측과 정답이 의미상 얼마나 겹치는지를 LM으로 판단해 정밀도(precision), 재현율(recall), F1 점수를 계산해요. 표기를 달리한 같은 답이라도 올바르게 인정해 주고 싶을 때 유용해요.

출처: 문서

본문

SemanticF1은 dspy.Module 계통의 메트릭으로, forward에서 예측과 정답 텍스트의 의미론적 일치를 평가해 F1 점수를 반환해요. 아래는 이 클래스가 노출하는 멤버 목록이에요.

::: dspy.evaluate.SemanticF1
    handler: python
    options:
        members:
            - __call__
            - acall
            - batch
            - deepcopy
            - dump_state
            - forward
            - get_lm
            - inspect_history
            - load
            - load_state
            - map_named_predictors
            - named_parameters
            - named_predictors
            - named_sub_modules
            - parameters
            - predictors
            - reset_copy
            - save
            - set_lm
        show_source: true
        show_root_heading: true
        heading_level: 2
        docstring_style: google
        show_root_full_path: true
        show_object_full_path: false
        separate_signature: false
        inherited_members: true

더 알아보기 (Learn more)