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 
<alessandro.gaglia...@glassdoor.com<mailto:alessandro.gaglia...@glassdoor.com>>
Date: Friday, November 22, 2013 4:27 PM
To: "rpy-list@lists.sourceforge.net<mailto:rpy-list@lists.sourceforge.net>" 
<rpy-list@lists.sourceforge.net<mailto:rpy-list@lists.sourceforge.net>>
Subject: load nnet in rpy2

Hi all,

I created a nnet model called err_net in R that I've saved in err_net.RData 
which I'd like to employ programmatically in a python module. If I were to do 
it in IPython Notebook using rmagic I might have a cell that look something 
like:

%%R -i x -o y
library(nnet)
load('err_net.RData')
y <- predict(err_net, x)

What would be the best way to do this without relying on magics?

Thanks in advance,
-Alessandro
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to