Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 1: Using the standard data partitioning, partition the follwoing financial fraud dataset into training and testing. Charges? Size Outcome Y small truthful N large
Part 1:Using the standard data partitioning, partition the follwoing financial fraud dataset into training and testing.
Charges? | Size | Outcome |
Y | small | truthful |
N | large | truthful |
N | large | fraud |
N | small | truthful |
N | small | truthful |
Y | small | fraud |
N | large | truthful |
Y | large | fraud |
N | small | truthful |
Y | large | fraud |
Part 2:The tiny dataset bellow incldues data collected from company's investing activities. The follwoing data represent traning set:
Column 1 | Column 2 | Result |
20 | 2 | Not invest |
11 | 3 | Invest |
6 | 3 | Invest |
2 | 4 | Invest |
4 | 4 | invest |
And the following datarepresent testing set:
Column 1 | Column 2 | Result |
17 | 3 | Invest |
9 | 6 |
The task is to use KNN to classify new data. To do so, you are required to check weither K=3 or K=5 is better. You need to provide your calculations.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started