Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9. (30 points) create a classifier to classify each observation to two class, Benign and Malignant: Target: Benign or Malignant - train/test size: 80:20 -

image text in transcribed
image text in transcribed
9. (30 points) create a classifier to classify each observation to two class, Benign and Malignant: Target: Benign or Malignant - train/test size: 80:20 - random_state=1 features columns X : "radius_mean","texture_mean","perimeter_mean","area_mean","smoothness_mean","compac tness_mean" answer the following questions: 1. print out the shape of X,y,X_train, X_test, Y_train,Y_test 2. report Logistic Regression accuracy of X,Y 3. report KNN accuracy of X,Y when k=5 4. loop k1-k25 and plot KNN accuracy of X,Y sample of k1-k25 plot of X (your chart might look different!) 0.94 0.93 0.91 0.90 0.89- 5 10 15 20 25 Value of K for KNN of X

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Differential Equations With Boundary-Value Problems

Authors: Dennis G Zill, Brad Strong, Michael Cullen

7th Edition

1111798524, 9781111798529

More Books

Students also viewed these Mathematics questions

Question

15. Describe the appropriate treatment of contingent gains.

Answered: 1 week ago

Question

What reward will you give yourself when you achieve this?

Answered: 1 week ago