You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The helper functions are built-in in transformers library. We mainly use
@@ -159,7 +145,8 @@ The `glue_convert_examples_to_features <https://github.com/huggingface/transform
159
145
- Generate token type ids to indicate whether a token belongs to the
160
146
first sequence or the second sequence.
161
147
162
-
The `F1 score <https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html>`_
148
+
The `glue_compute_metrics <https://github.com/huggingface/transformers/blob/master/transformers/data/processors/glue.py>`_ function has the compute metrics with
149
+
the `F1 score <https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html>`_, which
163
150
can be interpreted as a weighted average of the precision and recall,
164
151
where an F1 score reaches its best value at 1 and worst score at 0. The
165
152
relative contribution of precision and recall to the F1 score are equal.
@@ -168,6 +155,20 @@ relative contribution of precision and recall to the F1 score are equal.
0 commit comments