
Compiling and Running the KMM code:
-----------------------------------
export LD_LIBRARY_PATH=shogun/usr/local/lib
g++ -g -I./shogun-2.1.0/src RunKMM.cpp -L$LD_LIBRARY_PATH -lshogun -o kmm

Command to run the KMM step:

./kmm <features-file> <source-end-example-number> 

<features-file> : this file contains the features of the source and target examples. It should follow the LibSVM features format, with one example per line. It should have all source examples at the beginning and then followed by the target examples. For instance if there are 600 source examples and 400 target examples, the first 600 lines of <features-file> should be the source examples. The next 400 lines should be the target examples.

<source-end-example-number> : this is the line number where the source examples end. In the above example the value of this should be 600.

Output: This will output the progress of the optimization and in the end the weight Beta(i) for each source example in the <features-file>.

Example run:

./kmm source_and_target_feats.txt 600

