100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
ISYE-6501- Homework 2 $9.49   Add to cart

Exam (elaborations)

ISYE-6501- Homework 2

 2 views  0 purchase
  • Course
  • Institution

ISYE-6501- Homework 2

Preview 2 out of 10  pages

  • March 7, 2022
  • 10
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
avatar-seller
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 cross-validation (do this for the k-nearest-neighbors model;
SVM is optional);
Cross Validation is a model evaluation method to see how well our model has performed and prevent over
fitting. Supposed we receive a dataset with n data points, we do not use all these data points for training
instead we split them into training data and testing data . We use different iterations of this training data
and test data to check the efficiency of our model .
Different type of cross validation methods that I came across are – Holdout method, Leave one out cross
validation and K-fold cross validation .

For k-nearest-neighbors model (knn) model , I am going to use the Leave one out cross validation . In this
case – if I have n datapoint, I leave one out and use n-1 for training purpose .

, Display my_model to find error and Best K . (In this case best k = 58)




Now, let us check the accuracy for our model :

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller DUKETEST. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

82191 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.49
  • (0)
  Add to cart