Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

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

Closed
caijiqzj opened this issue Jun 14, 2023 · 7 comments
Closed

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

caijiqzj opened this issue Jun 14, 2023 · 7 comments

Comments

@caijiqzj
Copy link

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
Copy link

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

@LiuZH-19
Copy link
Owner

Here is an article about Using HDF5 with Python.

@caijiqzj
Copy link
Author

Here is an article about Using HDF5 with Python.

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

@caijiqzj
Copy link
Author

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

I've rewritten dataLoda to run like mtgnn

@YoungXiee
Copy link

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
Copy link

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
Copy link

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')

@caijiqzj caijiqzj closed this as completed Nov 1, 2024
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

5 participants