MCPcopy Create free account

hub / github.com/bojone/r-drop / functions

Functions30 in github.com/bojone/r-drop

↓ 5 callersMethodpredict
(self, inputs, output_ids, states)
csl.py:113
↓ 3 callersFunctionload_data
加载数据 单条格式:(文本, 标签id)
sentiment_ssl.py:35
↓ 3 callersFunctionload_data
加载数据 单条格式:(标题, 正文)
csl.py:33
↓ 2 callersFunctionevaluate
(data)
sentiment_ssl.py:144
↓ 2 callersFunctionload_data
(filename)
tnews.py:31
↓ 2 callersFunctionload_data
加载数据 单条格式:(文本, 标签id)
iflytek.py:27
↓ 1 callersFunctionevaluate
(data)
tnews.py:112
↓ 1 callersFunctionevaluate
(data)
iflytek.py:111
↓ 1 callersMethodevaluate
(self, data, topk=1)
csl.py:146
↓ 1 callersMethodgenerate
(self, text, topk=1)
csl.py:119
Method__init__
(self)
tnews.py:125
Method__init__
(self)
sentiment_ssl.py:157
Method__init__
(self)
csl.py:133
Method__init__
(self)
iflytek.py:124
Method__iter__
(self, random=False)
tnews.py:56
Method__iter__
(self, random=False)
sentiment_ssl.py:64
Method__iter__
(self, random=False)
sentiment_ssl.py:82
Method__iter__
(self, random=False)
csl.py:62
Method__iter__
(self, random=False)
iflytek.py:55
Methodcompute_loss
(self, inputs, mask=None)
csl.py:81
Functioncrossentropy_with_rdrop
配合R-Drop的交叉熵损失
tnews.py:95
Functioncrossentropy_with_rdrop
配合R-Drop的交叉熵损失
iflytek.py:94
Functionkld_rdrop
无监督部分只需训练KL散度项
sentiment_ssl.py:129
Methodon_batch_end
(self, batch, logs=None)
sentiment_ssl.py:172
Methodon_epoch_end
(self, epoch, logs=None)
tnews.py:128
Methodon_epoch_end
(self, epoch, logs=None)
sentiment_ssl.py:161
Methodon_epoch_end
(self, epoch, logs=None)
csl.py:138
Methodon_epoch_end
(self, epoch, logs=None)
iflytek.py:127
Functionpredict_to_file
输出预测结果到文件 结果文件可以提交到 https://www.cluebenchmarks.com 评测。
tnews.py:139
Functionpredict_to_file
输出预测结果到文件 结果文件可以提交到 https://www.cluebenchmarks.com 评测。
iflytek.py:138