Re: [Rpy] load nnet in rpy2

2013-12-02 Thread Laurent Gautier
On 12/02/2013 07:36 PM, Alessandro Gagliardi wrote: Thanks! That got me there, with only the following minor adjustments (recorded for posterity): First, it's nnet.predict_nnet()(not nnet.predict()) Ah, yes. The so-called S3 dispatch in R. The generic for predict() is in "stats". What you ha

Re: [Rpy] load nnet in rpy2

2013-12-02 Thread Alessandro Gagliardi
Thanks! That got me there, with only the following minor adjustments (recorded for posterity): First, it's nnet.predict_nnet() (not nnet.predict()) Also, I had to convert my pandas DataFrame to an R data.frame this way: import pandas.rpy.common as com r_df = com.convert_to_r_dataframe(pd_df) -

Re: [Rpy] load nnet in rpy2

2013-12-02 Thread Laurent Gautier
Ah, yes. Good you did. The licensing had all the attention. The following is completely untested, but should get you going (and with some luck, just work as it is) from rpy2.robjects.packages import importr base = importr('base') nnet = importr('nnet') # load: the side effect is to populate th

Re: [Rpy] load nnet in rpy2

2013-12-02 Thread Alessandro Gagliardi
I didn't get a response last week so I figured I should try again: How do I load a nnet model from a file in rpy2? Thanks, -Alessandro From: Alessandro mailto:alessandro.gaglia...@glassdoor.com>> Date: Friday, November 22, 2013 4:27 PM To: "rpy-list@lists.sourceforge.net