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

Where I can I get the WeldData csv dataset? #62

Open
VirtualVsMachine opened this issue Nov 15, 2023 · 3 comments
Open

Where I can I get the WeldData csv dataset? #62

VirtualVsMachine opened this issue Nov 15, 2023 · 3 comments

Comments

@VirtualVsMachine
Copy link

I am struggling to get a working data class set up using the template. I believe it may be the structure of my data. I was hoping to get the WeldData csv to see how my format may be different.

Any help is appreciated.

Banging my head against the wall trying to debug:
File "C:\Users\steve\OneDrive\Desktop\VsMachine\EXPERIMENTAL_MODELS\MVTS TRANSFORMER\src\datasets\dataset.py", line 115, in collate_superv
X[i, :end, :] = features[i][:end, :]
IndexError: too many indices for tensor of dimension 1

@TTAyanlade
Copy link

Hey @VirtualVsMachine , Did you find this?

@VirtualVsMachine
Copy link
Author

VirtualVsMachine commented Feb 23, 2024 via email

@gzerveas
Copy link
Owner

For the WeldData example, and any other custom dataset you wish to define, you can consider that each .csv file would have the following structure:

sample_ID timestamp feature 1 feature 2 label
02778 2020-06-02 00:05:23 12.4 0.002 1
02778 2020-06-02 00:05:24 12.5 0.095 1
02778 2020-06-02 00:05:25 12.2 0.098 1
14440 2020-06-01 14:05:18 9.15 -0.1 0
14440 2020-06-01 14:05:19 10.2 -0.098 0

This would be one file that contains 2 samples (time series), each with its own unique ID. The first sample here has a sequence length of 3, and the second one a sequence length of 2. Rows with the same ID correspond to the same sample (time series).

You can have several such .csv files, e.g. stored in the same directory (or accessible through a regex pattern), and their contents will be loaded and concatenated into the same dataframe.

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

3 participants