Comments (1)
对了,这点我没说清。关系是:
raw
= train
+ data
。
这句代码用的是raw:TRAINING_DATASET = "data/raw/CAIL2019-SCM-big/SCM_5k.json"
这句代码用的是train:TRAINING_DATASET = 'data/train/input.txt'
我把用raw的注释掉了,默认用train数据且kfold=1`时,此时会用train数据训练,然后用test数据测试,这样可以快速测试模型性能,仅训练1次、测试一次。
如果把kfold设置为大于1的数字,这时候会运行k折交叉验证,此时可以用raw数据,代码会对所有数据自行划分训练集、测试集来评估模型性能,训练k次、测试k次。
from cail2019.
Related Issues (12)
- 软label HOT 2
- 你好,我用你的程序,跑出来,评分只有0.52。感觉差太远了。我只把epoch设成1,batch_size设成8.其它没变。 HOT 30
- 关于Bert模型加载? HOT 11
- 数据label问题 HOT 5
- 启发式增广的代码有错误 HOT 1
- 问下官方公开的数据集是第几阶段的啊 HOT 1
- 作者您好!请问我该如何下载pytorch版本的BERT预训练模型呢?不胜感激! HOT 2
- 使用数据增广后报错 HOT 2
- from apex import FP16 rasied errors HOT 6
- Prediction Acc is 0.533 when running main.py and judger.py HOT 4
- 5fold and 1fold experiment GAP 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 cail2019.