ML101wk2


Lectures:

 

Chapter 4 Lecture:

http://www-users.cs.umn.edu/~kumar/dmbook/dmslides/chap4_basic_classification.pdf

 

 

CrossValidation.pdf

 

PredictionErrorvsModelComplexity  This chart is from the ESL text book

 

TreeExample.bmp Data Chart and Tree Diagram from rpart

 

Examples:

 wk02example1.r

 wd02example2.r  (simple example with rpart)

The code for sonar model complexity example SonarRpartXval.R

The code for the simulated data model complexity example modelComplexityExample.R

The code for Linear Regression Example  SimpleRegressionExample.R

      Notes for Linear Regression  notes

 

Working with  rpart

Simple rpart example SimpleTreeTab4_8.R with data file table4_8pg199.txt

 

Data Files:

Here are the Data File to upload before you run the R programs:

  rpart_text_example.txt   sonar_test.csv   sonar_train.csv  test_data.csv   test_data.txt  exams_and_names.csv

 

Homework:

HW02.pdf

 

Resources: 

 

John Herbach Lecture on PLANET

 

Web Site for 5th problem Data Description  http://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality.names

        Red Wine Data winequality-red.txt 

 

Hints and Notes:

To better understand R formulas help("formula")  http://127.0.0.1:27898/library/stats/html/formula.html