CERT/Build/mp_auCoder/SVMWeights: main.cpp makeSVMWEights.m CERT: reformWeights.m 1) Generate a set of SVM weights and save them in a Matlab .mat file. 2) Read the comments in reformWeights.m and decide if the .mat file needs to be reformated. Save the reformatted weights. 3) Call the makeSVMWeights Matlab function with the path to a properly formatted weights file, a progress detail flag, the xml filename prefix and a version number. Notes: main.cpp needs to be compiled into a mex called SVMExport.mexmac (extension will vary depending on OS). The mex function takes a matrix (9216 by x, with x being the number of AUs calculated by this weights file) with the data for one ni/mu combination plus some other information and writes that data to an xml file that can be used by CERT. makeSVMWeights is a matlab function that takes these arguments: SVMFile: filename of the SVM weights matlab file to be converted. is_silent: If set to 1, output a message for each xml file we create (poorly named) prefix: The prefix used to name each SVM xml file. Prefixes used by previous versions of CERT: SVMWeights, CERT3_Weights, CERT3_3_Weights. certVersion: svn repository version number. makeSVMWeights expects the SVM weight file to be in the current directory and for there to be a directory called SVMWeights in the current directory. All xml files will be created there. makeSVMWeights splits the matlab weights file into separate ni/mu combinations and sends each sub-matrix to the SVMExport function. reformWeights.m would be used something like this: load WeightFileExample.mat NewWeight=reformWeights(W) % W, or whatever the Matlab variable containing the weights is called save NewWeight