Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于导入的训练集、验证集和测试集的问题 #6

Open
wenwuzhidao2023 opened this issue Mar 15, 2023 · 4 comments
Open

Comments

@wenwuzhidao2023
Copy link

大大您好,我想请问一下如果所有数据都在一个csv文件里,程序是如何划分训练集、验证集和测试集的,是有比例吗?我研究了一下您的代码没有看懂,望赐教。
QQ截图20230315171814

@hyliush
Copy link
Owner

hyliush commented Mar 15, 2023

目前支持两种切分时间序列的方式,第一种按照设定的比例(长度)切分,第二种按照时间范围切分,源码见data/dataloader.py的get_idx1和get_idx2

@wenwuzhidao2023
Copy link
Author

wenwuzhidao2023 commented Mar 15, 2023 via email

@wenwuzhidao2023
Copy link
Author

目前支持两种切分时间序列的方式,第一种按照设定的比例(长度)切分,第二种按照时间范围切分,源码见data/dataloader.py的get_idx1和get_idx2

基于此还有个问题请教您,切分时间序列的方式是通过args中的“--num_workers”来选择的吗?默认值是0意味着用第一种方法(设定比例切分)?

@hyliush
Copy link
Owner

hyliush commented Mar 15, 2023

不是,数据集的加载一般没有固定的方式,建议参照dataloader里的数据类新增自己的数据类或者在原有基础上修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants