We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running the example in the first notebook, I have the following error:
in code:
slice_sizes = x_encoded.sum(axis=0).A[0] slice_errors = errors @ x_encoded max_slice_errors = x_encoded.T.multiply(errors).max(axis=1).A[:, 0]
AttributeError: coo_matrix has no attribute A
It seems like x_encoded.T.multiply(errors).max(axis=1) is a scipy.sparse.coo_matrix and not a np.matrix
x_encoded.T.multiply(errors).max(axis=1)
I have no idea if x_encoded.T.multiply(errors) is as scipy.sparse.csr like matrix
x_encoded.T.multiply(errors)
but modifing the line with:
- max_slice_errors = x_encoded.T.multiply(errors).max(axis=1).A[:, 0] + max_slice_errors = x_encoded.T.multiply(errors).max(axis=1).toarray()[:, 0]
The whole code runs smoothly. I guess this is not optimal.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When running the example in the first notebook,
I have the following error:
in code:
AttributeError: coo_matrix has no attribute A
It seems like
x_encoded.T.multiply(errors).max(axis=1)
is a scipy.sparse.coo_matrix and not a np.matrixI have no idea if
x_encoded.T.multiply(errors)
is as scipy.sparse.csr like matrixbut modifing the line with:
The whole code runs smoothly.
I guess this is not optimal.
The text was updated successfully, but these errors were encountered: