Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q3. (40p) We have a dataset of patients that has a specific tumor type. Each data point has the size of the tumor as its

image text in transcribed

Q3. (40p) We have a dataset of patients that has a specific tumor type. Each data point has the size of the tumor as its single feature and an output that shows whether a tumor is really a cancer (y=1) or not (y=0). The logistic regression model for this data is: h(x)=g(x/47) Here x is the size of the tumor and g(z) is the sigmoid function. where g(z)=1/1+ez We have the following test set that has five patients. Finally recall the error metric that is given in the lecture: m1i=1merr(h(x(i)),y(i)) Where err(h(x(i)),y(i))=0 if your prediction is correct and 1 otherwise. Use natural logarithm (LN) whenever necessary. a) (10) Find the confusion matrix of this algorithm. Please use the table below. Also use the last line of the above table to create the confusion matrix. Show your calculations

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions