gzerveas / mvts_transformer

Multivariate Time Series Transformer, public version
MIT License
718 stars 169 forks source link

how should mat file containing ECG data be feed to this model?? could anyone help on this?? #43

Closed Shubhamsg17 closed 1 year ago

gzerveas commented 1 year ago

You should basically use a package that reads the .mat file format into a python data structure, and then have a look at the example here to see how you should convert it into a Pandas dataframe used by the dataloader.

One example for loading .mat using scipy:

import scipy.io
mat = scipy.io.loadmat('file.mat')
Shubhamsg17 commented 1 year ago

thanks for the reply. ill try converting to dataframe and pass this dataframe to the model