File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 121121우선 Precision, Recall Metric들을 자연어 생성 분야에 적용하는 방법을 살펴보자. 이들은 자연어 생성 분야에서 다음과 같이 정의된다.
122122
123123$$
124- \begin{aligned}
125- \text{precision} &= \frac{\text{#(correct words)}}{\text{length of prediction}}\\
126- \text{recall} &= \frac{\text{#(correct words)}}{\text{length of reference}}
124+ \begin{aligned} \text{precision} &= \frac{\text{#(\text{correct words})}}{\text{length of prediction}}\\ \text{recall} &= \frac{\text{#(\text{correct words})}}{\text{length of reference}}
127125\end{aligned}
128126$$
129127
@@ -139,10 +137,7 @@ Predicted: <span style="color:#1e81b0">Half</span> as <span style="color:#1e81b0
139137이때 precision과 recall은 다음과 같다.
140138
141139$$
142- \begin{aligned}
143- \text{precision} &= \frac{\text{#(correct words)}}{\text{length of prediction}} = \frac{7}{9} \fallingdotseq 78\% \\
144- \text{recall} &= \frac{\text{#(correct words)}}{\text{length of reference}} = \frac{7}{10} = 70 \%
145- \end{aligned}
140+ \begin{aligned} \text{precision} &= \frac{\text{#(\text{correct words})}}{\text{length of prediction}} = \frac{7}{9} \fallingdotseq 78\% \\ \text{recall} &= \frac{\text{#(\text{correct words})}}{\text{length of reference}} = \frac{7}{10} = 70 \% \end{aligned}
146141$$
147142
148143그리고 F1 Score는 다음과 같다.
Original file line number Diff line number Diff line change 6262 font-size : 1.1rem ;
6363 line-height : 1.7 ;
6464 color : var (--foreground );
65- max-width : 58 ch ;
66- /* Narrower reading area */
65+ max-width : 63 ch ;
66+ /* Adjusted to average width */
6767 margin : 0 auto;
6868 /* Centers the content block */
6969}
You can’t perform that action at this time.
0 commit comments