Download presentation
Presentation is loading. Please wait.
Published byLeona Alexandra McKenzie Modified over 5 years ago
1
Cross-validation and Local Regression Lab
Peter Fox and Greg Hughes Data Analytics – ITWS-4600/ITWS-6600 Group 4 Lab 1, April 6, 2017
2
Diamonds require(ggplot2) # or load package first data(diamonds) head(diamonds) # look at the data! # ggplot(diamonds, aes(clarity, fill=cut)) + geom_bar() ggplot(diamonds, aes(clarity)) + geom_bar() + facet_wrap(~ cut) ggplot(diamonds) + geom_histogram(aes(x=price)) + geom_vline(xintercept=12000) ggplot(diamonds, aes(clarity)) + geom_freqpoly(aes(group = cut, colour = cut))
3
Cross-validation - cvTools
group4/lab1_cv{1,18}.R – try params
4
Smoothing/ local … Review this and apply to datasets in labs…
5
Scripts in the usual place
group4/lab1_svmreg*.R group4/lab1_knnreg*.R group4/lab1_loess*.R group4/lab1_pls*.R group4/lab1_lplm*.R group4/lab1_quant*.R group4/lab1_ridge*.R group4/lab1_splines*.R
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.