Use the k-nearest neighbor algorithm (with k = 3) to classify new transactions as fraudulent or not. What is the accuracy of the model? (Answer in percentage, for example, enter 80.5 for an 80.5% accuracy.)
Added by Betty P.
Step 1
In this case, we will use k = 3. Show more…
Show all steps
Your feedback will help us improve your experience
Adi S and 69 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Data mining routine has been applied to a transaction dataset and has classified 88 records as fraudulent (30 correctly so) and 952 as non-fraudulent (920 correctly so) using 0.5 as the cutoff. Note: fraudulent is the class of interest here. Specificity is: 0.516 0.915 0.941 0.966
Adi S.
A data mining routine has been applied to a transaction dataset and has classified 88 records as fraudulent (30 correctly so) and 952 as non-fraudulent (920 correctly so). Construct the classification matrix and calculate the error rate, sensitivity, and specificity.
Mauya M.
Umar Sohail Q.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD