From e80d3cbbdc61c28fffbd75530888aa56f6ac15b1 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Thu, 11 Jun 2015 14:19:16 +0800 Subject: fscore --- train.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'train.cpp') diff --git a/train.cpp b/train.cpp index dd1b1e6..b6ac730 100644 --- a/train.cpp +++ b/train.cpp @@ -48,6 +48,8 @@ int predict(DataProvider &dp) { RidList D; vector L; CMC cmc; + Fscore f; + LOG(INFO)<<"Prediction started"; ofstream fout; @@ -82,6 +84,15 @@ int predict(DataProvider &dp) { *ot< pair; + f.audit(D); + pair=f.getFscore(); + for (int i=0;i(), "set input model file") ("output,o", po::value(), "set output model/prediction file") ("feature,i", po::value(), "set input feature file") -- cgit v1.2.3-70-g09d2