LiuZH-19 / ESG

PyTorch implementation of ESG
72 stars 15 forks source link

Please help me, how to convert a.txt file to a usable.h5 file #1

Open caijiqzj opened 1 year ago

caijiqzj commented 1 year ago

Hi, I want to run this network with my own data set, but my file is a txt file like solar-energy, which is used to do multivariate time series prediction

DavidDong004 commented 1 year ago

Hi,didi you save the problem?I meet the same problem with you,thanks。

LiuZH-19 commented 1 year ago

Here is an article about Using HDF5 with Python.

caijiqzj commented 1 year ago

Here is an article about Using HDF5 with Python.

Thanks for your reply, I have rewritten dataLoda and it can run now

caijiqzj commented 1 year ago

Hi,didi you save the problem?I meet the same problem with you,thanks。

I've rewritten dataLoda to run like mtgnn

YoungXiee commented 1 year ago

Hi,didi you save the problem?I meet the same problem with you,thanks。

I've rewritten dataLoda to run like mtgnn

hi,i have meet the same problem,can you share how to rewrite the dataloader? Thank you

DavidDong004 commented 1 year ago

Hi,didi you save the problem?I meet the same problem with you,thanks。

I've rewritten dataLoda to run like mtgnn

Thanks,I will try it.

alwaysliyuan commented 1 year ago

import pandas as pd

txt_file_path = 'machine-1-1.txt' df = pd.read_csv(txt_file_path, sep=',', header=None)

h5_file_path = 'machine-1-1.h5' df.to_hdf(h5_file_path, key='data', mode='w')