00001 #include <moleculeset.h> 00002 00003 #define MUTAGDATASET "/home/luc/data/mutag/common/atom_bond.pl" 00004 #define GRAMOUTPUTFILE "/home/luc/data/mutag/common/results/gram_0.5_100.csv" 00005 00006 void main() 00007 { 00008 // create a new moleculeSet 00009 MoleculeSet aSet; 00010 00011 // from the mutag datafile: load, create molecules, and add them to the MoleculeSet. 00012 aSet.addMutag(MUTAGDATASET); 00013 00014 // calculate the Gram Matrix for the Mutag dataset using 0.5 stop probability and 00015 // convergence until rlk doesn't change more than 10% 00016 aSet.kashimaGramMatrix(0.5, 10); 00017 00018 // write the gram matrix to a file 00019 aSet.writeGramMatrix(GRAMOUTPUTFILE); 00020 }