DEPARTMENT OF COMPUTER ENGINEERING
The University of Lahore
1 - KM Defence Road, Lahore
=================================================
Subject: Machine Learning Course Code:CMP04409
Time Allowed: 01 Weeks Max Marks: 10
Examination: Assignment 04,Fall-2021 Date: 2 / 01 / 2022
Student Name: Reg. No. :
=================================================
Note:
(i) Draw neat and clean labeled diagrams where necessary.
=================================================
Submission Deadline: 26 / 05 / 2020
Question # 1: [CLO3, C4] (10)
Question: Choose any from the following available datasets. You are required to train a support vector
machine-based classifier to find accuracy of the trained model?
Draw the confusion matrix and ROC curve of the trained classifier?
Example Data for Classification
To get started using Classification Learner, try the following example data sets.
Name Size Description
Fisher Iris Number of Measurements from three species of iris. Try to classify
predictors: 4 the species.
Number of
For a step-by-step example, see Train Decision Trees
observations: 150
Using Classification Learner App.
Number of classes: 3
Response: species
Create a table from the .csv file:
fishertable = readtable('fisheriris.csv');
Ovarian Number of Ovarian cancer data generated using the WCX2 protein
Cancer predictors: 4000 array. Includes 95 controls and 121 ovarian cancers.
Number of
observations: 216
Number of classes: 2
Response: Group
Create a table from the .mat file:
load ovariancancer
ovariancancer = array2table(obs);
ovariancancer.Group = categorical(grp);