The University of The South Pacific: Lab 2 (Worth 4%)
The University of The South Pacific: Lab 2 (Worth 4%)
In this lab you will understand how linear regression works that you have learnt in your
lecture week 3. Do the following questions:
Regression Classification
7 - Using linear regression for classification classify your data into two classes using the
same formula given above. [Note: this time you have to label your data with +1 and -1 to
indicate two different classes]. Does it give you an expected solution? Try different class
sizes.
8 - Draw the separation plane if possible. [You need to determine the linear equation
W'X=0 or Xw = 0]
9 - Test your program.
10 – Show how linear regression for classification can improve pocket algorithm with
PLA.
Unsatisfactory Satisfactory Good Marks % Marks
BOK
(0%-49%) (50% - 75%) (76% - 100%) Allocated Attained
Unsatisfactory Satisfactory Good
II. Irrelevant prototyping I. Analysis of I. All satisfactory and
VIII. Poor architecture and requirements such as …
design makes future risk analysis & II. Choice of architecture
updates hard to mitigation, and design is based on
incorporate. prototyping, robustness,
identification of scalability, evolution
Abstraction & true/false and long term
1
Design requirements etc. management.
III. all relevant III. Innovative or creative
constraints and design of algorithms
requirements are (efficiency, structure
mentioned and data structures)
VI. Appropriate choice
of the architecture
and design
Unsatisfactory Satisfactory Good
I. Plagiarism I. Able to write a I. All satisfactory and…
II. Poor indentation, hard to complex code for an demonstrate very good
read and follow the code open ended problem programming skills.
III. Lots of bugs and/or II. Use of highest
Programming errors standard of 1
IV. Program produces programming
unexpected output practices such as
VII. Hard coding of data in modularity with
the program. appropriate
VIII. Poor structure architecture, low
- Anurag Sharma
coupling, high
cohesion, standard
docs (eg. Javadoc)
etc.
III. Appropriate testing is
done.
- Anurag Sharma