Outside GIL, you can't really work easily with Python objects. You should
instead stick to local C variables and routines. For instance, instead of
numpy routines, you can use cmath routines.
The cython book (
https://www.amazon.com/Cython-Programmers-Kurt-W-Smith/dp/1491901551)
and Nicolas's post
Hi Andy,
As you can notice in the code, I fixed C=1e9, so the intercept with
liblinear is not penalised and therefore I get the same solutions with
these solvers when everything goes well.
How can I check the objective of the l-bfgs and liblinear solvers with
sklearn?
Best regards,
Ben
O