paddlenlp.metrics.glue.po 15.3 KB
Newer Older
yuguo-Jack's avatar
yuguo-Jack committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2021, PaddleNLP
# This file is distributed under the same license as the PaddleNLP package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PaddleNLP \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-18 21:31+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.0\n"

#: ../source/paddlenlp.metrics.glue.rst:2
msgid "glue"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1:1 paddlenlp.metrics.glue.Mcc:1
#: paddlenlp.metrics.glue.MultiLabelsMetric:1
#: paddlenlp.metrics.glue.PearsonAndSpearman:1
msgid "基类::class:`paddle.metric.metrics.Metric`"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1:1
msgid ""
"This class encapsulates Accuracy, Precision, Recall and F1 metric logic, "
"and `accumulate` function returns accuracy, precision, recall and f1. The"
" overview of all metrics could be seen at the document of `paddle.metric "
"<https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/metric/Overview_cn.html>`_"
" for details."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1
#: paddlenlp.metrics.glue.AccuracyAndF1.compute
#: paddlenlp.metrics.glue.AccuracyAndF1.update paddlenlp.metrics.glue.Mcc
#: paddlenlp.metrics.glue.Mcc.compute paddlenlp.metrics.glue.Mcc.update
#: paddlenlp.metrics.glue.MultiLabelsMetric
#: paddlenlp.metrics.glue.MultiLabelsMetric.accumulate
#: paddlenlp.metrics.glue.MultiLabelsMetric.compute
#: paddlenlp.metrics.glue.MultiLabelsMetric.update
#: paddlenlp.metrics.glue.PearsonAndSpearman
#: paddlenlp.metrics.glue.PearsonAndSpearman.update
msgid "参数"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1:7
msgid ""
"Number of top elements to look at for computing accuracy. Defaults to "
"(1,)."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1:10
msgid "The positive label for calculating precision and recall. Defaults to 1."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1:14
msgid "String name of the metric instance. Defaults to 'acc_and_f1'."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1:18 paddlenlp.metrics.glue.Mcc:7
#: paddlenlp.metrics.glue.MultiLabelsMetric:11
#: paddlenlp.metrics.glue.PearsonAndSpearman:9
msgid "示例"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.compute:1
#: paddlenlp.metrics.glue.MultiLabelsMetric.compute:1
msgid ""
"Accepts network's output and the labels, and calculates the top-k "
"(maximum value in topk) indices for accuracy."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.compute:4
msgid ""
"Predicted tensor, and its dtype is float32 or float64, and has a shape of"
" [batch_size, num_classes]."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.compute:7
msgid ""
"The ground truth tensor, and its dtype is int64, and has a shape of "
"[batch_size, 1] or [batch_size, num_classes] in one hot representation."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate
#: paddlenlp.metrics.glue.AccuracyAndF1.compute
#: paddlenlp.metrics.glue.AccuracyAndF1.name
#: paddlenlp.metrics.glue.Mcc.accumulate paddlenlp.metrics.glue.Mcc.compute
#: paddlenlp.metrics.glue.Mcc.name
#: paddlenlp.metrics.glue.MultiLabelsMetric.accumulate
#: paddlenlp.metrics.glue.MultiLabelsMetric.compute
#: paddlenlp.metrics.glue.MultiLabelsMetric.name
#: paddlenlp.metrics.glue.PearsonAndSpearman.accumulate
#: paddlenlp.metrics.glue.PearsonAndSpearman.name
msgid "返回"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.compute:12
msgid ""
"Correct mask, each element indicates whether the prediction equals to the"
" label. Its' a tensor with a data type of float32 and has a shape of "
"[batch_size, topk]."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate
#: paddlenlp.metrics.glue.AccuracyAndF1.compute
#: paddlenlp.metrics.glue.AccuracyAndF1.name
#: paddlenlp.metrics.glue.Mcc.accumulate paddlenlp.metrics.glue.Mcc.compute
#: paddlenlp.metrics.glue.Mcc.name
#: paddlenlp.metrics.glue.MultiLabelsMetric.accumulate
#: paddlenlp.metrics.glue.MultiLabelsMetric.compute
#: paddlenlp.metrics.glue.MultiLabelsMetric.name
#: paddlenlp.metrics.glue.PearsonAndSpearman.accumulate
#: paddlenlp.metrics.glue.PearsonAndSpearman.name
msgid "返回类型"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.update:1
#: paddlenlp.metrics.glue.MultiLabelsMetric.update:1
msgid ""
"Updates the metrics states (accuracy, precision and recall), in order to "
"calculate accumulated accuracy, precision and recall of all instances."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.update:4
msgid ""
"Correct mask for calculating accuracy, and it's a tensor with shape "
"[batch_size, topk] and has a dtype of float32."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:1
#: paddlenlp.metrics.glue.Mcc.accumulate:1
#: paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:1
#: paddlenlp.metrics.glue.PearsonAndSpearman.accumulate:1
msgid "Calculates and returns the accumulated metric."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:3
msgid ""
"The accumulated metric. A tuple of shape (acc, precision, recall, f1, "
"average_of_acc_and_f1)  With the fields:  - `acc` (numpy.float64):     "
"The accumulated accuracy. - `precision` (numpy.float64):     The "
"accumulated precision. - `recall` (numpy.float64):     The accumulated "
"recall. - `f1` (numpy.float64):     The accumulated f1. - "
"`average_of_acc_and_f1` (numpy.float64):     The average of accumulated "
"accuracy and f1."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:3
msgid ""
"The accumulated metric. A tuple of shape (acc, precision, recall, f1, "
"average_of_acc_and_f1)"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:6
#: paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:27
#: paddlenlp.metrics.glue.PearsonAndSpearman.accumulate:6
msgid "With the fields:"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:8
msgid "`acc` (numpy.float64):"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:9
msgid "The accumulated accuracy."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:10
msgid "`precision` (numpy.float64):"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:11
#: paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:30
msgid "The accumulated precision."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:12
msgid "`recall` (numpy.float64):"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:13
#: paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:32
msgid "The accumulated recall."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:14
msgid "`f1` (numpy.float64):"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:15
#: paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:34
msgid "The accumulated f1."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:16
msgid "`average_of_acc_and_f1` (numpy.float64):"
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.accumulate:17
msgid "The average of accumulated accuracy and f1."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.reset:1
#: paddlenlp.metrics.glue.Mcc.reset:1
#: paddlenlp.metrics.glue.PearsonAndSpearman.reset:1
msgid "Resets all metric states."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.name:1
#: paddlenlp.metrics.glue.Mcc.name:1
#: paddlenlp.metrics.glue.MultiLabelsMetric.name:1
#: paddlenlp.metrics.glue.PearsonAndSpearman.name:1
msgid "Returns name of the metric instance."
msgstr ""

#: of paddlenlp.metrics.glue.AccuracyAndF1.name:3
#: paddlenlp.metrics.glue.Mcc.name:3
#: paddlenlp.metrics.glue.MultiLabelsMetric.name:3
#: paddlenlp.metrics.glue.PearsonAndSpearman.name:3
msgid "The name of the metric instance."
msgstr ""

#: of paddlenlp.metrics.glue.Mcc:1
msgid ""
"This class calculates `Matthews correlation coefficient "
"<https://en.wikipedia.org/wiki/Matthews_correlation_coefficient>`_ ."
msgstr ""

#: of paddlenlp.metrics.glue.Mcc:3
msgid "String name of the metric instance. Defaults to 'mcc'."
msgstr ""

#: of paddlenlp.metrics.glue.Mcc.compute:1
msgid ""
"Processes the pred tensor, and returns the indices of the maximum of each"
" sample."
msgstr ""

#: of paddlenlp.metrics.glue.Mcc.compute:4
msgid ""
"The predicted value is a Tensor with dtype float32 or float64. Shape is "
"[batch_size, 1]."
msgstr ""

#: of paddlenlp.metrics.glue.Mcc.compute:7
msgid ""
"The ground truth value is Tensor with dtype int64, and its shape is "
"[batch_size, 1]."
msgstr ""

#: of paddlenlp.metrics.glue.Mcc.compute:11
msgid ""
"A tuple of preds and label. Each shape is [batch_size, 1], with dtype "
"float32 or float64."
msgstr ""

#: of paddlenlp.metrics.glue.Mcc.update:1
msgid ""
"Calculates states, i.e. the number of true positive, false positive, true"
" negative and false negative samples."
msgstr ""

#: of paddlenlp.metrics.glue.Mcc.update:4
msgid ""
"Tuple of predicted value and the ground truth label, with dtype float32 "
"or float64. Each shape is [batch_size, 1]."
msgstr ""

#: of paddlenlp.metrics.glue.Mcc.accumulate:3
msgid ""
"Returns the accumulated metric, a tuple of shape (mcc,), `mcc` is the "
"accumulated mcc and its data type is float64."
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman:1
#, python-format
msgid ""
"The class calculates `Pearson correlation coefficient "
"<https://en.wikipedia.org/wiki/Pearson_correlation_coefficient>`_ and "
"`Spearman's rank correlation coefficient "
"<https://en.wikipedia.org/wiki/Spearman%27s_rank_correlation_coefficient>`_"
" ."
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman:5
msgid "String name of the metric instance. Defaults to 'pearson_and_spearman'."
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman.update:1
msgid ""
"Ensures the type of preds and labels is numpy.ndarray and reshapes them "
"into [-1, 1]."
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman.update:4
msgid ""
"Tuple or list of predicted value and the ground truth label. Its data "
"type should be float32 or float64 and its shape is [batch_size, d0, ..., "
"dN]."
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman.accumulate:3
msgid ""
"Returns the accumulated metric, a tuple of (pearson, spearman, "
"the_average_of_pearson_and_spearman).  With the fields:  - `pearson` "
"(numpy.float64):     The accumulated pearson.  - `spearman` "
"(numpy.float64):     The accumulated spearman.  - "
"`the_average_of_pearson_and_spearman` (numpy.float64):     The average of"
" accumulated pearson and spearman correlation     coefficient."
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman.accumulate:3
msgid ""
"Returns the accumulated metric, a tuple of (pearson, spearman, "
"the_average_of_pearson_and_spearman)."
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman.accumulate:9
msgid "`pearson` (numpy.float64):"
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman.accumulate:9
msgid "The accumulated pearson."
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman.accumulate:12
msgid "`spearman` (numpy.float64):"
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman.accumulate:12
msgid "The accumulated spearman."
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman.accumulate:15
msgid "`the_average_of_pearson_and_spearman` (numpy.float64):"
msgstr ""

#: of paddlenlp.metrics.glue.PearsonAndSpearman.accumulate:15
msgid "The average of accumulated pearson and spearman correlation coefficient."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric:1
msgid ""
"This class encapsulates Accuracy, Precision, Recall and F1 metric logic "
"in multi-labels setting (also the binary setting). Some codes are taken "
"and modified from sklearn.metrics ."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric:5
msgid "The total number of labels which is usually the number of classes"
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric:7
msgid "String name of the metric instance. Defaults to 'multi_labels_metric'."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric:43
msgid ""
"Note: When zero_division is encountered (details as followed), the "
"corresponding metrics will be set to 0.0"
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric:40
msgid ""
"precision is zero_division if there are no positive predictions recall is"
" zero_division if there are no positive labels fscore is zero_division if"
" all labels AND predictions are negative"
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.update:4
msgid "the tuple returned from `compute` function"
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:9
msgid "Only report results for the class specified by pos_label."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:10
msgid ""
"Calculate metrics globally by counting the total true positives, false "
"negatives and false positives."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:12
msgid ""
"Calculate metrics for each label, and find their unweighted mean. This "
"does not take label imbalance into account."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:14
msgid ""
"Calculate metrics for each label, and find their average weighted by "
"support (the number of true instances for each label). This alters "
"`macro` to account for label imbalance; it can result in an F-score that "
"is not between precision and recall."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:18
msgid ""
"The positive label for calculating precision and recall in binary "
"settings. Noted: Only when `average='binary'`, this arguments will be "
"used. Otherwise, it will be ignored. Defaults to 1."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:24
msgid ""
"The accumulated metric. A tuple of shape (precision, recall, f1)     With"
" the fields:      - `precision` (numpy.float64 or numpy.ndarray if "
"average=None):         The accumulated precision.     - `recall` "
"(numpy.float64 or numpy.ndarray if average=None):         The accumulated"
" recall.     - `f1` (numpy.float64 or numpy.ndarray if average=None):"
"         The accumulated f1."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:33
msgid "The accumulated metric. A tuple of shape (precision, recall, f1)"
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:29
msgid "`precision` (numpy.float64 or numpy.ndarray if average=None):"
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:31
msgid "`recall` (numpy.float64 or numpy.ndarray if average=None):"
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.accumulate:33
msgid "`f1` (numpy.float64 or numpy.ndarray if average=None):"
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.compute:4
msgid ""
"Predicted tensor, and its dtype is float32 or float64, and has a shape of"
" [batch_size, *, num_labels]."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.compute:7
msgid ""
"The ground truth tensor, and its dtype is int64, and has a shape of "
"[batch_size, *] or [batch_size, *, num_labels] in one hot representation."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.compute:12
msgid ""
"it contains two Tensor of shape [*, 1]. The tuple should be passed to "
"`update` function."
msgstr ""

#: of paddlenlp.metrics.glue.MultiLabelsMetric.reset:1
msgid "Reset states and result"
msgstr ""