Google open sourced TensorFlow (TF), a distributed machine learning library, in November. The basic idea is that, you build your ML process into a graph and let TF handle the running and distribution of the work between cores. Be it cores in your CPU or GPU, TF has you covered. The dataflow graph works much... Continue Reading →
Integrating R Code in Beamer Presentations
I am preparing presentations for the upcoming R workshop. That means I have to find a way to integrate R code and results into my presentations. Now I know there are a number of ways to achieve this, but I like beamer for presentations and R for analysis. Now thanks to Knitr, I can bring... Continue Reading →
World Map Visualizations Based on Data in R
I am working on a workshop for Business Analytics masters students. Part of the demos I intend to use are geographical visualizations. I am using rworldmap package to achieve these. Let us say you have geographical data in a data.frame such as country, with country identifiers stored in "ip_iso2" column in ISO2 format and the... Continue Reading →
Beamer use Tikz to Highlight Certain Parts of Tables
EDIT: I CHANGED THE SERVICE PROVIDER FOR THE BLOG AND THE CODE BLOCK BELOW GOT MESSED UP. ALL SLASHES ARE GONE. BEWARE I did my proposal yesterday and it went well 😀 I used beamer to prepare my slide deck and was very pleased with how easy it was to work with. R already has... Continue Reading →
AWS Educate For Teaching and Research
I was pleasantly surprised to find out that Arizona State University was a member of AWS educate, more so since my year of free trial ran out last month and I just payed my first bill for the Amazon instance I use for data collection. Amazon Web Services provides an easy to deploy, easy to... Continue Reading →
Academic Profile Pages with Markdown Like Syntax
I use markdown in my analysis reports and for my research log. When I was thinking of putting up a more official looking public profile page, I found myself thinking of using markdown to create my profile page on ASU web site. While Markdown is convenient in generating HTML, it is not really suited for... Continue Reading →
Working with Big Data in R
This year has been crazy in terms of data I use for my analysis. Frequently the traditional methods I use in R would fail to allocate enough memory for the task at hand. Luckily, R has great support for such tasks. I will note down a few package names that have served me well lately... Continue Reading →
PLM package is pretty decent for traditional econometric models, yet when it comes to datasets I have to deal with everyday it can be pretty inefficient. If only we had a version of within transformation that would work with multiple clustering variables... Actually, we have it in the form of felm package for R from... Continue Reading →
R and Messy Date Formats in Data
For one of my projects I am using Python scripts to scrape web pages. Unfortunately, the dates in the pages are not in a consistent format. Some are like Jun 19 2014, whereas others are 28-Mar-14, yet others are 2010-Sep-20. The trickiest ones are the ones like Jun-10. Thanks to plannapus in stack overflow I... Continue Reading →