Hi folks,
I’m trying to call Linear and Logistic regressions from sklearn as a subroutine, but this results in an error
“Untyped global name ‘LogisticRegression’: cannot determine Numba type of <class ‘type’>”.
Is there a way to use these sklearn helpers in a @jit-ed numba function?
If not, what’s the best way to get the numba speedup while using sklearn?
Thanks!
hi @kaiwenw , Numba will compile your code, but it will not compile the libraries that you call. For that, the library author should apply Numba to their functions, in this case logistic regression.