Intro. to Artificial Intelligence
(CS4601):
HW 3 for Pattern Recognition
Due date: Dec. 16, 1997
This homework continues the work in homework 2.
In particular, you need to write three scripts that perform the following tasks:
- Write a function louerror.m
that computes the
leave-one-out (LOU) recognition rate of a sample data set.
Plot the LOU recognition rate as a function of k, where
k varies from 1 to 10.
The plotting script is go1.m.
A sample plot is shown next:
- Write a function pcp.m that performs
dimension reduction using principal component projection.
Plot the LOU recognition rate as a function of the number of dimension
that ranges from 1 to 8.
The value of k can be set to 1.
The plotting script is go2.m.
A sample plot is shown next:
Please turn in a floppy disk containing these two files
(louerror.m and pcp.m) and our TA will
run go1.m and go2.m
(on MATLAB version 4.2) to see if your work is right
or not.