import rpy rpy.r.library("rpart") rpy.r.library("MASS")
stat = "rpart(syct~.,cpus,xval=10,minsplit=2,cp=1e-3)" stat2 = "rpart(syct~.,cpus,xval=10,minsplit=2,cp=0.01)" # working as expected now fits = map(rpy.r,[stat,stat2]) print map(lambda a : len(a['cptable']),fits) # 12, 7 # still working as exptected fits = map(rpy.r,[stat,stat2]) print map(lambda a : len(a['cptable']),fits) # 12, 7 # here comes the funny part import gtk fits = map(rpy.r,[stat,stat2]) print map(lambda a : len(a['cptable']),fits) # 12, 58 --------- It seems in the last case, that the cp parameter is set to cp=0. Parameters of type 1e-9 is still working correctly though. Bug has been replicated on two different (k)Ubuntu Dapper machines and one windows machine. All machines have been running Numeric, without Numpy installed. R 2.2.1 was used, aswell as python2.3 and python2.4. rpy. anybody smarter than me got any clue what's going on? regards Reidar Strand Hagen ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list