Title | Homework 2 GT t - HELLO WORLD |
---|---|
Course | CHEM |
Institution | Monterey Peninsula College |
Pages | 15 |
File Size | 645.7 KB |
File Type | |
Total Downloads | 85 |
Total Views | 147 |
HELLO WORLD...
Homework GT 2 2/2/2021% Question 3.1: Using the same data set (credit_card_data.txt or credit_card_data-headers.txt) as in Question 2.2, use the ksvm or kknn function to find a good classifier: (a) using crossvalidation (do this for the k-nearest-neighbors model; SVM is optional); and (b) splitting the data into training, validation, and test data sets (pick either KNN or SVM; the other is optional). #Below I am using cross-validation% library(kernlab)% library(kknn)% Reading%in%the%data%and%printing%out%the%first%5%and%last%5%rows.% data...