Hey Alberto,
Try
with gil:     print("something with gil")

Let me know if that works
Danny

From: [email protected]
Date: Mon, 1 Sep 2014 17:23:02 +0200
To: [email protected]
Subject: [Scikit-learn-general] Print coordinate descent coefficients at        
each iteration

Hi,

I would like to print the coordinate descent coefficients at each iteration. So 
far I've identified the code and variable I want to print. In particular I want 
to print the variable w in function enet_coordinate_descent from cd_fast.pyx. 
The problem is I do not have any previous experience with Cython and, as far as 
I've read, you can not simply put a print or a write statement because you run 
into problems with the GIL. Anyone has any pointers on how to solve this 
problem? Thank you very much in advance.







------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general               
                          
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to