0% found this document useful (0 votes)
33 views2 pages

COMP-377 Lab Assignment 2 - F21

Uploaded by

zhou keyu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

COMP-377 Lab Assignment 2 - F21

Uploaded by

zhou keyu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

AI Software Developers COMP-377

Lab Assignment #2 – Apply Logistic Regression and Support Vector


Machines algorithms to solve various classification problems.

Due Date: Sunday 11:59pm, Week 7

Purpose: The purpose of this Lab assignment is to:


 Design and implement Python applications that incorporate Logistic
Regression solutions
 Design and implement Python applications that incorporate SVM
solutions

References: Read reference books, Stanford tutorial on logistic regression


(http://deeplearning.stanford.edu/tutorial/supervised/LogisticRegression/), and the
lecture slides. This material provides the necessary information that you need to
complete the exercises.

Be sure to read the following general instructions carefully:


- This assignment must be completed individually by all the students.
- You will have to demonstrate your solution in a scheduled lab session and upload the
solution on eCentennial through the assignment link.

Exercise 1: Logistic Regression

Write an application to predict the secondary school student performance using a logistic
regression model. The dataset is
from https://archive.ics.uci.edu/ml/datasets/student+performance.

Evaluate the accuracy of the model.


(4 marks)

Exercise 2: Support Vector Machines

Write an application to classify MNIST digits using a Support Vectors Machine model. The
dataset is from http://yann.lecun.com/exdb/mnist/. Evaluate the accuracy of the model and
compare the results with those of a logistic regression model used in
http://ufldl.stanford.edu/tutorial/supervised/LogisticRegression/.

(6 marks)

Evaluation:
Functionality: 85%
Correct implementation of requirements
Code explanation when asked
Algorithm design: correct design of classes and 15%
methods similarly to class examples and using
the naming guidelines.

Lab #2 Page 1 of 2
AI Software Developers COMP-377

Total 100%

You must name your Jupyter notebook file according to the following rule:
YourFullname_COMP377Labnumber_Exercisenumber.

Example: JohnSmith_COMP377La2_Ex1

Submission rules:

Submit your solution as a zip file that is named according to the following rule:
YourFullname_COMP377Labnumber.zip

Example: JohnSmith_COMP377Lab2.zip

Use 7-zip to compress files (https://www.7-zip.org/download.html).

Lab #2 Page 2 of 2

You might also like