Score » Historique » Révision 2
Révision 1 (François Rioult, 19/10/2013 20:49) → Révision 2/3 (François Rioult, 19/10/2013 20:54)
h1. Score h2. Synopsis @score@ computes the validation values from a decision file: AUC and the points of the curve; recall, precision and Fscore for each class and their average. file h2. Input format Each lines has three fields, separated by a tab char: # 1. The string description of the object, whose first field is the true class # 2. the decision value for the first class (1), preceeded with a ':' (1) # 3. the decision value for Class 2, preceeded with a ':' 2 etc. h2. Example <pre> $ cat score-test.txt > /tmp/test 1 5 7 8 12 15 18 22 24 27 30 32 34 36 :11.561 :46.2681 2 5 7 11 13 16 18 22 23 27 30 32 35 38 :0 :850.127 2 3 ^D ... $ score score-test.txt mtminer /tmp/test <?xml version="1.0" encoding="UTF-8" standalone="no" ?> 2 # depth 2 <root> <roc> <point x="0" y="0"/> <point x="0.166667" y="0.533333"/> <point x="0.166667" y="0.6"/> <point x="0.166667" y="0.666667"/> <point x="0.25" y="0.666667"/> <point x="0.25" y="0.733333"/> <point x="0.333333" y="0.733333"/> <point x="0.416667" y="0.733333"/> <point x="0.416667" y="0.8"/> <point x="0.416667" y="0.866667"/> <point x="0.416667" y="0.933333"/> <point x="0.5" y="0.933333"/> <point x="0.583333" y="0.933333"/> <point x="1" y="1"/> <auc>78.0556</auc> </roc> <score>70.3704</score> <class index="1"> <precision>73.3333</precision> <recall>73.3333</recall> <fscore>73.3333</fscore> <decision class="1">11</decision> <decision class="1">4</decision> </class> <class index="2"> <precision>66.6667</precision> <recall>66.6667</recall> <fscore>66.6667</fscore> <decision class="2">4</decision> <decision class="2">8</decision> </class> <average> <precision>70</precision> <recall>70</recall> <fscore>70</fscore> </average> </root> 1 3 </pre> h2. C++ code The code is avalaible below (score.tgz). Just extract and make, the binary is in the @dist/Release/GNU-Linux-x86@ folder. (mtminer-dist.tgz). h2. Reference [1] Hébert C., Bretto A., Crémilleux B. A data mining formalization to improve hypergraph transversal computation, Fundamenta Informaticae, IOS Press, 80(4), pp. 415-433, 2007.