Comments (7)
想问下这个小数点是指哪里的小数点啊
from bert4torch.
我看了下,可以在脚本最开始使用如下代码实现,默认为4
import os
os.environ['ROUND_PRECISION'] = '4'
from bert4torch.
- Finish Training 这个结果只有两位小数,怎么保留四位呢??
from bert4torch.
- Finish Training 这个结果只有两位小数,怎么保留四位呢??
不好意思,没太理解你的意思,你如果说的是评估evaluate时候的指标精度,那是用户自行控制的,和框架自身无关
from bert4torch.
比如说某数据集的训练或者测试的结果,精度都是两位 ,原始显示格式如下:
precision recall f1-score support
0 0.74 0.78 0.76 173
1 0.79 0.79 0.79 346
2 0.75 0.69 0.72 173
accuracy 0.76 692
macro avg 0.76 0.75 0.76 692
weighted avg 0.76 0.76 0.76 692
如何在classification.py进行修改精度,我没有找到修改精度的地方,应该是我的问题,如果可以请指明一下如何修改吗;另外weighted avg 这个是应该是加权平均的意思,它和 accuracy的区别是?如何设置的权重呢?
from bert4torch.
你说的是sklearn.metrics
中的classification_report
函数这些吧,建议进去函数内部查一下函数的参数,比如classification_report
有一个digit
参数之类
from bert4torch.
非常感谢,明白了!确实是修改digit就可以了!
from bert4torch.
Related Issues (20)
- 训练进度条中,loss一直显示Nan的问题 HOT 5
- 询问一个bert4torch和bert4keras的差异 HOT 1
- 单机多卡BaseModelDDP初始化错误,AttributeError: can't set attribute HOT 12
- tokenizer_encode_config和tokenizer_decode_config问题 HOT 3
- 预训练模型加载 HOT 5
- DataLoader的num_workers设置为大于0时出错 HOT 3
- 请问在用bart bert等模型生成标题时,如果修改标题的最大长度? HOT 3
- 显示每个epoch的已用时间和预估剩余时间 HOT 3
- chinese-xlnet-mid载入 HOT 1
- XLnet分类报错 HOT 4
- simbert微调问题 HOT 2
- LLM:chatGLM2推理加速 HOT 1
- bert4torch版本0.2.8升级到0.3.4问题 HOT 2
- 分类算法sentence句子编码的时候,没理解到mask处理逻辑 HOT 1
- Trainer.compile与torch2.0新加的model.compile重名 HOT 3
- bert4torch中,使用单卡多GPU训练,使用accelerate后,不能使用梯度剪裁。 HOT 3
- bert4torch/examples/llm /task_chatglm2_lora.py中的config_path = dir_path + 'bert4torch_config.json' 在哪里? HOT 3
- callback变红 HOT 3
- self.random_sample和 self.beam_search返回值tensor未统一转化numpy,导致两函数同时调用报错 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bert4torch.