From c7152b8843fadd0961ce8fe20c1eac6403f0275d Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Sun, 12 Apr 2015 11:30:01 +0800 Subject: validate AP --- main.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 0c71b07..a517d88 100644 --- a/main.cpp +++ b/main.cpp @@ -19,7 +19,6 @@ int train() { rsvm = RSVM::loadModel(vm["model"].as()); FileDP dp(vm["feature"].as()); - // Generic training operations dp.open(); DataList D; @@ -50,12 +49,9 @@ int predict() { std::vector L; LOG(INFO)<<"Prediction started"; - while (!dp.EOFile()) - { - dp.getDataSet(D); - LOG(INFO)<<"Read "<predict(D,L); - } + dp.getDataSet(D); + LOG(INFO)<<"Read "<predict(D,L); if (vm.count("validate")) { -- cgit v1.2.3-70-g09d2