Re: [Rpy] rpy2 memory leak

2009-04-23 Thread Réjean Ducharme
There are many posts concerning a memory leak in rpy2, and I have to say that it's also affecting me. But fortunately, after losing a couple of days on this problem, I found this webpage that kind of solve my problem: http://code.activestate.com/recipes/511474/ The solution is to wrap the work

[Rpy] Problems saving "glm" model

2009-04-16 Thread Réjean Ducharme
Hi, I'm using Rpy2 and I'm trying to save a trained "glm" model, using the R "save" function. Unfortunately, it fails... By example, running the following dummy example: --- import rpy2.robjects as ro import rpy2.rl

[Rpy] Pickling a Rpy2 object

2009-04-06 Thread Réjean Ducharme
Hi all, I'm using Rpy2 to train a logistic regressor (using the "glm" function in R), and I need to save the model for futher use. I naively try to use pickle, but I have an error message: import rpy2.robjects as robjects fit = robjects.r.glm(formula=f, family=robjects.r.binomial(), data=data) o