Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored 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