Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We can evaluate our model even further by running the command table(round(predict(model, train.data, type=response)), train.data$chf), this command will provide us with a confusion matrix shown

We can evaluate our model even further by running the command table(round(predict(model, train.data, type="response")), train.data$chf), this command will provide us with a confusion matrix shown in figure 5 below. A confusion matrix shows how many records in the data have predicted classification. In figure 5 diagonally from left to right shows the number of correct classification instances, 211 + 47=258. Diagonally from right to leftshows the number of incorrect classification instances, 62+32=94. The combination of the two totals equals the number of instances in the in the training set, 352. With this information we can obtain the classification accuracy of the data, the diagonal sum 258 divided by the number of instances in the data 352, 258/352=0.73295 or 73

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

Discrete and Combinatorial Mathematics An Applied Introduction

Authors: Ralph P. Grimaldi

5th edition

201726343, 978-0201726343

More Books

Students also viewed these Mathematics questions