summaryrefslogtreecommitdiff
path: root/train.cpp
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-06-02 11:42:43 +0800
committerJoe Zhao <ztuowen@gmail.com>2015-06-02 11:42:43 +0800
commitb29d766bb0c3d2e5839164ef6cd316b2e00fba62 (patch)
tree74cef72157b7cfdcfef43c4d84aa5738a05f0b8f /train.cpp
parent17be62773adb99fc3fac11c13b3f7cd8bf5f2258 (diff)
downloadranksvm-b29d766bb0c3d2e5839164ef6cd316b2e00fba62.tar.gz
ranksvm-b29d766bb0c3d2e5839164ef6cd316b2e00fba62.tar.bz2
ranksvm-b29d766bb0c3d2e5839164ef6cd316b2e00fba62.zip
added avg for cmc auditing
Diffstat (limited to 'train.cpp')
-rw-r--r--train.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/train.cpp b/train.cpp
index 1c49902..fda06cb 100644
--- a/train.cpp
+++ b/train.cpp
@@ -84,6 +84,8 @@ int predict(DataProvider &dp) {
vector<double> cur = cmc.getAcc();
for (int i = 0;i<CMC_MAX;++i)
*ot << cur[i]<<endl;
+ *ot << "AVG"<<endl;
+ *ot << cmc.getAvg()/D.getqSize() <<endl;
}
if (vm.count("output"))
fout.close();