Closed sklarz-bgu closed 3 weeks ago
Same problem.
You can do the following modification and it seems to work fine:
layer_data = layer_data.toarray() if issparse(layer_data) else layer_data
Hope it does what it's supposed to do...
Thank you @sklarz-bgu for providing the solution. I think that's some api mismatch bettween dependency versions. That solution does what it intended to do.
Hi. When running
preprocess.py
, I get the following error:AttributeError: 'csr_matrix' object has no attribute 'A'
I'm running
preprocess()
as part of the tutorial described hereoffending lines: 181-182.
type(layer_data)
isscipy.sparse._csr.csr_matrix
,issparse(layer_data)
isTrue
.Could this be an issue of versions? I think I installed everything correctly.
Thanks Menachem