Trying Julia
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
In my previous post I tried building Williams designs in R. Since that code was running a bit slow, this was an ideal test for Julia. Big enough to be at least slightly realistic, small enough that it is doable.
I am very impressed. Almost twenty fold speed increase, even though this was the best I could do in R, the most naive way possible in Julia.
R Julia Ratio
Double Williams design 4, 100 times 3.97 sec 0.212 sec 0.053
Williams design 5, 10 times 289.5 sec 18.54 sec 0.064
I’d surely love to use Julia more. For instance, if I could port some of the algorithm’s of Professor Ng Machine Learning class to Julia? I don’t think it is possible yet, but what is not, may come.
Julia code
Note
Both designs were created using the same script. If you ask an even number of design points using the odd algorithm, then this will work. You just get a design with double the rows, carry over balanced, every treatment equally often in each row and each column.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.