Re: [Rpy] saving an R model

2009-12-22 Thread Laurent
On 21/12/09 08:36, JJ wrote: > Hello: > I am using the gbm package and want to save the model returned after calling > the function gbm via rpy2. For example, > r.library('gbm') > gbm = robjects.r['gbm'] > myModel = gbm(data) > > My question is, how can I save myModel such that I can later reload

Re: [Rpy] saving an R model

2009-12-21 Thread JJ
Ah, I found a way to save a model: r.assign('myModel', myModel) r('save(myModel, file="myFile,RData")') John -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-

[Rpy] saving an R model

2009-12-20 Thread JJ
Hello: I am using the gbm package and want to save the model returned after calling the function gbm via rpy2. For example, r.library('gbm') gbm = robjects.r['gbm'] myModel = gbm(data) My question is, how can I save myModel such that I can later reload it in python and it is useable (for examp