gcc -lm -O4 krls.cc -o krls
krls is executable and move it to whichever
directory you keep your binaries in (e.g. mv krls ~/bin/)
krls and you should get something like this:
> krls
Usage: krls
<data_file_name> [-n <nu>] [-l <lambda>] [-k
<kernel_type> [<kernel parameters>]]
krls at the prompt you are
reminded of the correct syntax of the krls command:
>
krls
Usage: krls <data_file_name> [-n <nu>] [-l
<lambda>] [-k <kernel_type> [<kernel
parameters>]]<data_file_name> is the only non optional argument. In
our convention it should be train.dat.
-n option allows to specify the value of
<nu>. Otherwise, a default value of 0.01 is
used.-l option allows to specify the value of
<lambda>. Otherwise, a default value of 0.1 is
used.
-k option allows to specify the type of
kernel to be used. Currently <kernel_type> may equal
either 0 or 1 or 2.
-k option is invoked the user is allowed to
specify up to 3 kernel parameters. These parameters are identified by their
order of appearance. Any prefix of the three is also acceptable, with the rest
given their default values, if required. These parameters are: a - the degree of the polynomial kernel, or the
standard deviation of the Gaussian kernel (default value: 1) krls train.dat
Runs KRLS on the data file
train.dat with a Gaussian kernel and default parameters.
krls
train.dat -n 0.001 -k 1 3
Runs KRLS on the data file train.dat with a
polynomial kernel of degree 3 and default parameters, except nu that is set to
0.001.krls train.dat -k 1 3 1 0
Runs KRLS on the data
file train.dat with a polynomial kernel of degree 3, b=1
and c=0 (the homogeneous polynomial kernel). nu and
lambda are at their default values.<data_file_name>.out, i.e. in our convention this file would
be train.dat.out.train.dat, if
the first header line is counted as line number 0.
train.dat using the indices appearing on the 2nd line of
train.dat.out.