Skip to content

Mat format error for yelp-chi, snap-patents #4

Description

@sajqavril

Dear contributors,

Thanks for your contribution to the community of heterophilic graphs. However, when I try to use yelp-chi data which is downloaded from google drive, I cannot load it correctly using spicy.io.loadmat. I have followed every step of your code and instruction, so could you please give some advice, try yourselves again, or update the dataset?

p.s. the error info looks like:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
~/etc/miniconda3/lib/python3.8/site-packages/scipy/io/matlab/mio.py in loadmat(file_name, mdict, appendmat, **kwargs)
    223     variable_names = kwargs.pop('variable_names', None)
    224     with _open_file_context(file_name, appendmat) as f:
--> 225         MR, _ = mat_reader_factory(f, **kwargs)
    226         matfile_dict = MR.get_variables(variable_names)
    227 

~/etc/miniconda3/lib/python3.8/site-packages/scipy/io/matlab/mio.py in mat_reader_factory(file_name, appendmat, **kwargs)
     72     """
     73     byte_stream, file_opened = _open_file(file_name, appendmat)
---> 74     mjv, mnv = get_matfile_version(byte_stream)
     75     if mjv == 0:
     76         return MatFile4Reader(byte_stream, **kwargs), file_opened

~/etc/miniconda3/lib/python3.8/site-packages/scipy/io/matlab/miobase.py in get_matfile_version(fileobj)
    229     if maj_val in (1, 2):
...
--> 231     raise ValueError('Unknown mat file type, version %s, %s' % ret)
    232 
    233 
ValueError: Unknown mat file type, version 32, 99

Many thanks and waiting for your response sincerely,
Sun

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions