subject

4. Assume you have the data set shown below. The data contains 10 instances, V1-V11 features, and a binary class (0 and 1). Instance V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 Category
1 1 2 3 1 0 1 3 4 5 10 10 1
2 0 1 2 4 6 3 2 5 5 9 9
3 1 2 4 3 6 5 7 9 8 10 10 0
4 10 3 5 9 8 4 7 6 4 4 0
5 2 1 10 8 9 1000 1 3 7 8 8 0
6 2 2 -100 5 7 8 10 1 1 1
7 9 9 9 9 9 9 9 9 9 9 9 0
8 2 4 6 3 10 1 200 1 7 7 1
9 6 6 6 6 0 0 0 0 0 0 0 1
10 5 5 5 5 5 5 5 5 5 5 5 1

Show all of the problems with the data, apply all of the preprocessing techniques, and perform the classification by KNN algorithm with an 80/20 train-test split ratio. I only need the code for the KNN algorithm.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of β€œtag” to remember the meaning of contagious
Answers: 3
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
question
Computers and Technology, 24.06.2019 14:40
Create a function (prob3_6) that will do the following: input a positive scalar integer x. if x is odd, multiply it by 3 and add 1. if the given x is even, divide it by 2. repeat this rule on the new value until you get 1, if ever. your program will output how many operations it had to perform to get to 1 and the largest number along the way. for example, start with the number 3: because 3 is odd, we multiply by 3 and add 1 giving us 10. 10 is even so we divide it by 2, giving us 5. 5 is odd so we multiply by 3 and add one, giving us 16. we divide 16 (even) by two giving 8. we divide 8 (even) by two giving 4. we divide 4 (even) by two giving 2. we divide 2 (even) by 2 to give us 1. once we have one, we stop. this example took seven operations to get to one. the largest number we had along the way was 16. every value of n that anyone has ever checked eventually leads to 1, but it is an open mathematical problem (known as the collatz conjectureopens in new tab) whether every value of n eventually leads to 1. your program should include a while loop and an if-statement.
Answers: 3
question
Computers and Technology, 24.06.2019 18:30
In what way is your social media footprint related to your digital id
Answers: 1
You know the right answer?
4. Assume you have the data set shown below. The data contains 10 instances, V1-V11 features, and a...
Questions
question
Mathematics, 13.09.2020 14:01
question
History, 13.09.2020 14:01
question
Business, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
English, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Biology, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Social Studies, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Chemistry, 13.09.2020 14:01
question
Biology, 13.09.2020 14:01
question
Business, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01