The Fifth Elephant 2014

A conference on big data and analytics

Bargava Subramanian

@barsubra

Machine Learning using R : Crash course in Classification Methods

Submitted Jun 1, 2014

The aim is to provide the attendees with an overview (implementation-wise) of some of the major classification methods using R. The focus of the workshop will be on breadth rather than depth. A lot of methods will be introduced, but their mathematical properties won’t be discussed in detail.

As a caveat, most of the real-life problems cannot be solved efficiently without further detailed understanding of these algorithms. But this workshop should give a quick and dirty start to solving the problems.

Target Audience: Beginner/Intermediate

Outline

The following topics would be covered. The format would be a bit of theory and then implementation using R

Introduction to Machine learning

  1. Types of Learning (Supervised/Unsupervised/Reinforced)
  2. Introduction to Generalization
  3. Train/Test/Validation Datasets
  4. Bias – Variance tradeoff
  5. Overfitting
  6. Cross-validation
  7. Regularization
  8. Grid Search
  9. Hyperparameter Optimization
  10. Feature Selection/Transformation
    a. Greedy feature selection (forward, backward, stepwise)
    b. Non-linear transformations, Kernels

Classification Techniques covered:

  1. Linear Regression
  2. Logistic Regression
  3. LASSO, Ridge and Elastic net regression
  4. kNN
  5. Discriminant Analysis
  6. Decision Trees, CART, CHAID
  7. Support Vector Machines
  8. Naïve Bayes
  9. Ensemble Methods
    a. Boosting
    b. Bagging
    c. Random Forest
    d. Regularized Random Forest
    e. Gradient Boosting Machines

Unsupervised learning techniques covered:

  1. Dimensionality Reduction: Principal Component Analysis
  2. K-Means clustering

Illustrating common pitfalls

  1. Data snooping
  2. Occam’s Razor

Big Data Analytics (*need AWS credit for implementation. And time permitting)

  1. Introduction to Big Data and Hadoop
  2. R and Big Data
    a. Hadoop
    b. Linear Model
    c. Random Forest

Requirements

Prerequisites:

  1. The attendee should have an aptitude for solving data mining/machine learning problems.
  2. Preferred if attendees read a bit about R before coming (please see links below)

Hardware:
Any modern laptop configuration would work. It is good to have atleast 4+ GB of RAM with a dual core/quad core machine.

Software:

  1. Install latest R version from CRAN website : http://cran.r-project.org/
  2. Install R Studio : https://www.rstudio.com/
  3. For Hadoop, need AWS credit.

Dataset and required R packages
Please download data from the following location:
https://dl.dropboxusercontent.com/u/72650512/5th_el_train.csv.zip

Please install the following R packages:
(To do: open R Studio, and enter install.packages(“package_name”))

  1. caret
  2. data.table
  3. e1071
  4. foba
  5. gbm
  6. glmnet
  7. mboost
  8. nnet
  9. gbm
  10. randomForest
  11. RRF

Update* (22 July):
Additional packages (please install, if possible)
1)data.table
2)sqldf
3)ROCR
4)kernlab
5)rpart

Speaker bio

Data Analytics professional at Cisco Systems India Pvt Ltd.

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

Jump starting better data engineering and AI futures