Hi,
I'm using bootstrap_isc with pairwise=True. The first time I ran it, I got the error from assert np.allclose(voxel_iscs, voxel_iscs.T) because my isc_data has nan. When we do a comparison, nan is never equal to nan. So I applied np.nan_to_num(isc_data) and I ran a whole night for a (378, 161032) ISC data, neither any results nor errors. It's weird.
My questions are:
- is
assert np.allclose(voxel_iscs, voxel_iscs.T) that necessary to be here? Since nan != nan, whenever we compare two matrices with nans, even if they are identical, we'll always get False.
- what happened to my second try with
np.nan_to_num(isc_data)? There is no error so I don't what was going on. I guess, it just needs more time to do the computation.
Thank you!
Hi,
I'm using
bootstrap_iscwithpairwise=True. The first time I ran it, I got the error fromassert np.allclose(voxel_iscs, voxel_iscs.T)because myisc_datahas nan. When we do a comparison,nanis never equal tonan. So I appliednp.nan_to_num(isc_data)and I ran a whole night for a (378, 161032) ISC data, neither any results nor errors. It's weird.My questions are:
assert np.allclose(voxel_iscs, voxel_iscs.T)that necessary to be here? Sincenan != nan, whenever we compare two matrices with nans, even if they are identical, we'll always get False.np.nan_to_num(isc_data)? There is no error so I don't what was going on. I guess, it just needs more time to do the computation.Thank you!