Learning Kernels Documentation

Command Line Binaries

There are three main command line binaries that can be used for generating a kernel or feature mapping, depending on how the base matrices are defined. They are listed here in order from the most to least general.

klcombinekernels - given several kernel matrices for the same dataset, output a weighted combination of these kernel matrices.

klcombinefeatures - given several explicit feature mappings of the same dataset, output a weighted combination of these feature mappings.

klweightfeatures - given a single explicit feature mapping of the dataset, output a weighted feature mapping or kernel. I.e. each feature in this case corresponds to a rank-1 kernel.

Usage

All of the above command line binaries are used in the following fashion:

$ command [flags] input_file output_file

The input_file is either an explicit feature mapping representation of the data or a kernel matrix representation, both of which should follow the LIBSVM format. Additionally, klcombinekernels can read binary kernel files output by the kleval tool with the --bin flag set.

The output_file is also going to be an explicit feature mapping representation or kernel matrix representation of the data in LIBSVM format.

Command Line Flags

Here we give a list of useful flags that are used in conjunction with the command line binaries. Note, running any of the commands without any arguments will result in a full listing and description of possible flags and their default values.