首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
推荐学习书目
›
Learn Python the Hard Way
Python Sites
›
PyPI
- Python Package Index
›
http://diveintopython.org/toc/index.html
›
Pocoo
值得关注的项目
›
PyPy
›
Celery
›
Jinja2
›
Read the Docs
›
gevent
›
pyenv
›
virtualenv
›
Stackless Python
›
Beautiful Soup
›
结巴中文分词
›
Green Unicorn
›
Sentry
›
Shovel
›
Pyflakes
›
pytest
Python 编程
›
pep8 Checker
Styles
›
PEP 8
›
Google Python Style Guide
›
Code Style from The Hitchhiker's Guide
V2EX
›
Python
小白请教,请问这种数据集要怎么分割训练集和测试集,并且建立训练模型呢?
1
stevech
·
2018-12-27 15:36:32 +08:00
· 2375 次点击
这是一个创建于 2113 天前的主题,其中的信息可能已经有所发展或是发生改变。
我的想法是把 CSV 文件中若干行的数据作为一个样本(列数定长,但行数不定长),然后在 n 个样本中分割训练集和测试集。
请问这种变长的数据集可以用来建立训练模型吗?
训练
分割
请问
样本
5 条回复
•
2018-12-30 21:53:50 +08:00
1
eagle40
2018-12-27 22:01:20 +08:00
还真挺白的:) 先找个 demo 照猫画虎做一遍不就知道了嘛
2
tottea
2018-12-28 08:58:54 +08:00
是目标检测的数据集吗?我最近做也用到 CSV 的数据格式
3
stevech
OP
2018-12-28 19:02:16 +08:00
@
tottea
是的 QAQ
4
tottea
2018-12-29 00:21:46 +08:00
@
stevech
那这样按图片为单位来分割为训练 /测试集就好了,先把 csv 读进来,注意要以图片为单位,然后打乱,划分为两个集合,再分别写到 train.csv 和 val.csv 就好了
5
stevech
OP
2018-12-30 21:53:50 +08:00
@
tottea
谢谢!!
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
5849 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 06:27
·
PVG 14:27
·
LAX 23:27
·
JFK 02:27
Developed with
CodeLauncher
♥ Do have faith in what you're doing.