Leeds-MRG / Minos

SIPHER Microsimulation for estimating the effect on Income policy on mental health.
MIT License
4 stars 3 forks source link

rpy2 speed improvements #436

Open RobertClay opened 7 months ago

RobertClay commented 7 months ago

messing around with r utils functions we can call rpy2 a lot less than we are currently.

going to refactor these functions and test speed improvements.

RobertClay commented 5 months ago

@ld-archer per your comment the other day on easier loading of dataframes into rpy2.

combine this with not converting back into pandas and just directly cast predictions to np arrays.

limiting rpy2 use as much as possible seems like the goal here.