Resolver One Daily

Cheating in Python

June 5, 2009 · Leave a Comment

I have to confess I have tried hard to replace R and Matlab with Python in my everyday life, and I have failed greatly. Just the fact that arrays in Numpy are inconsistent with Matlab is irritating. furthermore, I haven’t found any tool for image processing better than Matlab, and R is too sweet to be replaceable. Another thing that I don’t like about doing scientific computing in Python is that python started as an amazing scripting code just like Matlab and now it is a power full OOP language. It’s too complex for the dirty number crunching (F# shines here, it is the greatest new language for scientific computing that I have seen) I used to love Fortran, Python is much better than fortran but not as good as Matlab/Octave

Ever since I have found this R library for Resolver one my life has been much simpler, I now run some data processing in Python and in Resolver one. If the algorithm that I want to use is too complex I pass everything to R and then run my commands from Resolver One in R and then read everything back in Resolver One and load it into the grid.  Using this procedure I can run a K-means classifier in R with my resolver one data.

I know people who have codes in Python, Fortran and C together. My codes are pretty much combinations of Python, Resolver One, R and Matlab (occasionally Java or C#)and this combination works perfectly for me. I have replaced Matlab GUI with .Net gui now but almost all of my data crunching is done on the R end and all the data parsing and pre/post processing is done in Python and ResolverOne

Do you also have mixed codes? If you do how do you test your system and how do you set up your software tests (I am still trying to figure out how to test a code with mixed languages)

Categories: Uncategorized

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment