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
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-
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