I’m getting this error message:
“untyped global name ‘matthews_corrcoef’: cannot determine numba type of <class ‘function’>”
from the following code:
from sklearn.metrics import matthews_corrcoef @njit def wrapped_matthews(df): return matthews_corrcoef(df[:,0],df[:,1])
the code of the matthews_corrcoef function is mostly array operations with numpy - is there any way to leverage this in numba without re-writing the code?