COMP 527 - 2019 - CA Assignment

COMP 527 - 2019 - CA Assignment 1
Data Classification
Implementing Perceptron algorithm
Assessment Information
Assignment Number 1 (of 2)
Weighting 12%
Assignment Circulated 28th January 2019
Deadline 5th March 2018, 15:00 UK Time (UTC)
Submission Mode Electronic via Departmental submission system
Learning outcome assessed (1) A critical awareness of current problems and research
issues in data mining. (3) The ability to consistently apply
knowledge concerning current data mining research issues
in an original manner and produce work which is at the
forefront of current developments in the sub-discipline of
data mining.
Purpose of assessment This assignment assesses the understanding of the Perceptron
algorithm by implementing a binary Perceptron for text
clustering.
Marking criteria Marks for each question are indicated under the corresponding
question.
Submission necessary in order No
to satisfy Module requirements?
Late Submission Penalty Standard UoL Policy.
1
1 Objectives
This assignment requires you to implement the Perceptron algorithm using the Python programming
language.
Note that no credit will be given for implementing any other types of classification
algorithms or using an existing library for classification instead of
implementing it by yourself. However, you are allowed to use numpy library
for accessing data structures such as numpy.array. But it is not a requirement
of the assignment to use numpy. You must provide a README file
describing how to run your code to re-produce your results.
2 Text Classification using Binary Perceptron Algorithm
Download the CA1data.zip file from the COMP 527 web site and uncompress it. Inside, you will
find two files: train.data and test.data, corresponding respectively to the train and test data to be
used in this assignment. Each line in the file represents a different train/test instance. The first
four values (separated by commas) are feature values for four features. The last element is the class
label (class-1, class-2 or class-3).
Questions/Tasks
(1) Explain the Perceptron algorithm for the binary classification case, providing its pseudo code. (20 marks)
(2) Prove that for a linearly separable dataset, perceptron algorithm will converge. (10 marks)
(3) Implement a binary perceptron. (20 marks)
(4) Use the binary perceptron to train classifiers to discriminate between (a) class 1 and class 2,
(b) class 2 and class 3 and (c) class 1 and class 3. Report the train and test classification
accuracies for each of the three classifiers after 20 iterations. Which pair of classes is most
difficult to separate? (20 marks)
(5) For the classifier (a) implemented in part (3) above, which feature is the most discriminative?
(5 marks)
(6) Extend the binary perceptron that you implemented in part (2) above to perform multi-class
classification using the 1-vs-rest approach. Report the train and test classification accuracies
for each of the three classes after training for 20 iterations. (15 marks),
(7) Add an ?2 regularisation term to your multi-class classifier implemented in question (5). Set
the regularisation coefficient to 0.01, 0.1, 1.0, 10.0, 100.0 and compare the train and test
classification accuracy for each of the three classes. (10 marks)
3 Deadline and Submission Instructions
? Submit
2
(a) the source code for all your programs (do not provide ipython/jupyter/colab notebooks,
instead submit standalone code in a single .py file),
(b) a README file (plain text) describing how to compile/run your code to produce the
various results required by the assignment, and
(c) a PDF file providing the answers to the questions.
Compress all of the above files into a single zip file and specify the filename as studentid.tgz
(replace “studentid” by your departmental student id). It is extremely important that you
provide all the files described above and not just the source code! File types other than zip
will not be accepted by the submission system. Every year there is a significant number of
submissions without a student id or a name. Obviously, if you do not write name or student
id then it is not possible to assign marks to you!
Submission is via the departmental submission system accessible from
http://intranet.csc.liv.ac.uk/cgi-bin/submit.pl?module=COMP527

因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com

微信:codinghelp

原文地址:https://www.cnblogs.com/welhoa/p/10462607.html

时间: 2024-11-07 20:41:55

COMP 527 - 2019 - CA Assignment的相关文章

CS530, Spring 2019, Program Assignment

CS530, Spring 2019, Program Assignment #226 Feb 2019You and your team shall develop, test, and deliver a disassembler program for theXE variant of the SIC/XE family of machines.XE DISASSEMBLER REQUIREMENTS:The XE disassembler program shall open an XE

COMP SCI 3306 Assignment 3: Frequent Itemsets, Clustering

Assignment 3: Frequent Itemsets, Clustering,AdvertisingFormative, Weight (15%), Learning objectives (1, 2, 3),Abstraction (4), Design (4), Communication (4), Data (5), Programming (5)Due date: 11 : 59pm, 3 June, 20191 OverviewRead the following caref

COMP 1010

ASSIGNMENT 1DEPARTMENT AND COURSE NUMBER: COMP 1010COURSE TITLE: Introduction to Computer Science 1TERM: Fall 20191Assignment 1DUE DATE OCTOBER 4 2019 AT 11:59PMNotes:• Name your sketches using your name, the assignment number, and the question numbe

CS560/460 Spring 2019

CS560/460 Spring 2019Programming Assignment 1(Due February 12, 2019 by 11:59pm) 1.Geometric Primitives Drawing Description: The line drawing function is the basic function provided by many graphics tools, such as the MS Word, power point, etc. A numb

STM32F3 159.233 Assignment 2

159.233 Assignment 2Due 6th May 2019This assignment is concerned with building a simple memory and co-ordination toy using the STM32F3 Discovery boardThe board should do the following:When powered on, the 8 LEDs should spin in a circle until the blue

FIT2076 Assignment

FIT2076 Assignment 2 Semester 2, 2019This assignment is worth 25% of the total mark for the unit.This is a group assignment and is to be completed by 2students working together.Title: Application Development and ImplementationScenarioHarry Helper is

COMP 9517

COMP 9517T1, 2020 Assignment 1: SpecificationMaximum marks achievable: 10 marksThis assignment is worth 10% of the total course marks.Deliverables: You will submit a report (maximum 5 pages) briefly explaining the approach youhave taken in Tasks 1, 2

COMP0037 Coursework Investigating Path Planning Algorithms

COMP0037 Coursework 1Term 2, 2019"Path Planning in a Known World"Investigating Path Planning AlgorithmsCOMP0037 Assignment 1Simon Julier ([email protected]), Dan Butters ([email protected]), Julius Sustarevas([email protected])Version: 21st Janu

CS602 - Data-Driven Development

CS602 - Data-Driven Development with Python Spring 2019 Programming AssignmentProgramming Assignment 3Getting startedComplete the reading and practice assignments posted on the course schedule. Review class handouts andexamples. This assignment requi