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
A = pxxy.keys()
tot = float(sum(pxxy.values()))
return sum((pxxy[k]/tot)* np.log2( (pxxy[k]/float(pxy[k[1:]])) / (pxx[k[:2]]/float(px[k[1:2]])) ) for k in A)`
It generates an error C is a matrix of 0 and 1 with 3 columns
The text was updated successfully, but these errors were encountered:
Using nopython=True with njit is redundant - njit is just a shorthand for @jit(nopython=True)
It would be a bit easier to look into if the code provided were executable to demonstrate the issue, with some explanation of the expected outcome from running it.
I've had a guess at what the executable reproducer might be:
Closing this issue as it seems to be resolved. If this is not the case please re-open with a comment about any item that appears to be unresolved. Many thanks.
Hi, could you help me please to run this function using numba .
`from collections import Counter
@njit(nopython=True)
def TE(C):
pxxy = Counter(literal_unroll(map(tuple,C)))
pxy = Counter(map(tuple,C[:,1:]))
pxx = Counter(map(tuple,C[:,:2]))
px = Counter(map(tuple,C[:,1:2]))
It generates an error C is a matrix of 0 and 1 with 3 columns
The text was updated successfully, but these errors were encountered: