I spoke at this conference this Sunday July 26, 2015 http://www.iimnetwork.com/event-delhi-26-jul-15-pan-iim-alumni
Using RMySQL from Ubuntu
- Install MySQL
sudo apt-get install mysql-server
- Check if Server is Running
sudo netstat -tap | grep mysql
I use the MySQL command line to check it
To connect
mysql -h localhost -u root -p
To see databases
mysql>show databases;
To see tables
mysql> show tables from mysql;
To quit mysql
mysql> \q
- Install and load RMySQL from within R
install.packages(“RMySQL”)
library(RMySQL)
- I connect using this
mydb = dbConnect(MySQL(),
user=’root’,
password=’XXX’,
host=’localhost’,
port = 8018,
dbname=’mysql’)
- I write sql queries using this
> dbGetQuery(mydb, "select * from servers") [1] Server_name Host Db Username Password [6] Port Socket Wrapper Owner <0 rows> (or 0-length row.names) > dbGetQuery(mydb, "select * from db") [1] Host Db [3] User Select_priv [5] Insert_priv Update_priv [7] Delete_priv Create_priv [9] Drop_priv Grant_priv [11] References_priv Index_priv [13] Alter_priv Create_tmp_table_priv [15] Lock_tables_priv Create_view_priv [17] Show_view_priv Create_routine_priv [19] Alter_routine_priv Execute_priv [21] Event_priv Trigger_priv <0 rows> (or 0-length row.names)
Source-
https://help.ubuntu.com/12.04/serverguide/mysql.html
https://mkmanu.wordpress.com/2014/07/24/r-and-mysql-a-tutorial-for-beginners/
Sponsored: PAW Boston keynotes, agenda and workshops announced
|
BOSTON Seaport World Trade Center Sept. 27 – Oct. 1, 2015 Keynote Speakers: DEAN ABBOTT Co-Founder & Chief Data Scientist of SmarterHQ Chief Data Scientist Hopper Chief Data Scientist The New York Times Co-located Events: |
Predictive Analytics World for Business announces Boston program
Predictive Analytics World (PAW) for B usiness covers a wide range of business applications for predictive analytics across industry sectors including marketing, credit scoring, insurance, fraud detection, web optimization, and much more. What’s on the Agenda?
Why Attend?
Super Early Bird Rates |
Decisionstats interviews John Sall, co-founder SAS for StatisticsViews.com
We just interviewed the legendary John Sall, co -founder of SAS Institute. What can I say? Mr Sall is awesome and shows us why here
6. Do you still write code? Describe what keeps you motivated in coding.
I do still write code. It’s something I enjoy, and I’m good at it. I like to express myself in code. Writing code helps me to understand the development process so that I can make better judgments about it.
Speaking at IIMNetwork
Predictive Analytics with IBM Watson
The Amazing Watson makes Data Science so elementary
I got the email from IBM saying try out Watson, yada yada yada. I was not so sure what to expect. So i uploaded the diamonds dataset from the flagbearer ggplot2 package in R.
Simple benchmark- can IBM Watson data viz beat the best data viz package (ggplot2) in the best statistical language (R)
To my chagrin and humility- here are the results
Interface is awesome
Watson actually asks questions which an experienced Data Scientist would ask
The default data visualization is actually superior but the tabs for customizing appearance needs some work.
STEP 1
Just uploaded the dataset and these were some of the questions asked by Watson to me.
Look at how Watson answers one of these questions
I added human input(me) to try and customize it


















