You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run true_labels = data_utils.read_sparse_file('Sandbox/Data/EUR-Lex/tst_X_Y.txt')
It raise an exception that ValueError: buffer size must be a multiple of element size from sparse.py line 257,
i.e., indices = np.frombuffer(ind, np.int64)
I see that ind is an array that with typecode = 'l', it seems that the each element in ind takes 4 bytes, according to https://docs.python.org/3/library/array.html.
So I am confused that why loading frombuffer with dtype np.int64?
My machine is 64bit OS.
Python is the version 3.8.8.
The text was updated successfully, but these errors were encountered:
When I run
true_labels = data_utils.read_sparse_file('Sandbox/Data/EUR-Lex/tst_X_Y.txt')
It raise an exception that
ValueError: buffer size must be a multiple of element size
from sparse.py line 257,i.e.,
indices = np.frombuffer(ind, np.int64)
I see that
ind
is an array that with typecode = 'l', it seems that the each element inind
takes 4 bytes, according tohttps://docs.python.org/3/library/array.html
.So I am confused that why loading frombuffer with dtype np.int64?
My machine is 64bit OS.
Python is the version 3.8.8.
The text was updated successfully, but these errors were encountered: