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

PaddleTS多时序数据导入怎么获取group_id #479

Closed
kachadx opened this issue Mar 23, 2024 · 5 comments
Closed

PaddleTS多时序数据导入怎么获取group_id #479

kachadx opened this issue Mar 23, 2024 · 5 comments
Assignees

Comments

@kachadx
Copy link

kachadx commented Mar 23, 2024

#Load TSDatasets by group_id
from paddlets import TSDataset
tsdatasets = TSDataset.load_from_dataframe(
df=sample,
group_id='id',
target_cols='a',
observed_cov_cols=['c', 'd'],
#static_cov_cols='id'
)
使用group_id导入数据,得到的是个TSDataset集合,怎么知道每个集和对应的group_id值是多少,没找到对应的方法和属性,而且预测后也不知道对应的是哪个group_id的预测值

@kachadx
Copy link
Author

kachadx commented Mar 24, 2024

对于多时序数据的回测支持好像也不是很好,需要循环去回测吗?也没有一个整体的一个指标对应多时序数据

@Sunting78 Sunting78 self-assigned this Mar 27, 2024
@Sunting78
Copy link
Collaborator

您好,len(tsdatasets)的长度就是group一共有多少组。指定group_id后 会读取成list,相同的group_id被划分为一组。

@kachadx
Copy link
Author

kachadx commented Mar 28, 2024

指定group_id?怎么指定group_id,没找到对应的方法和属性

@Sunting78
Copy link
Collaborator

在您的csv数据中,哪一个是表示group_id的,就设置group_id='xx'即可

@Sunting78
Copy link
Collaborator

您好,由于问题超过一周,将自动关闭。

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