diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-04-12 11:30:01 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-04-12 11:30:01 +0800 |
commit | c7152b8843fadd0961ce8fe20c1eac6403f0275d (patch) | |
tree | 27be692b617054317a044a347789dc68f429db90 /main.cpp | |
parent | 4662779251de3b692c20d4e10980a795f04e7520 (diff) | |
download | ranksvm-c7152b8843fadd0961ce8fe20c1eac6403f0275d.tar.gz ranksvm-c7152b8843fadd0961ce8fe20c1eac6403f0275d.tar.bz2 ranksvm-c7152b8843fadd0961ce8fe20c1eac6403f0275d.zip |
validate AP
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -19,7 +19,6 @@ int train() { rsvm = RSVM::loadModel(vm["model"].as<std::string>()); FileDP dp(vm["feature"].as<std::string>()); - // Generic training operations dp.open(); DataList D; @@ -50,12 +49,9 @@ int predict() { std::vector<double> L; LOG(INFO)<<"Prediction started"; - while (!dp.EOFile()) - { - dp.getDataSet(D); - LOG(INFO)<<"Read "<<D.getSize()<<" entries with "<< D.getfSize()<<" features"; - rsvm->predict(D,L); - } + dp.getDataSet(D); + LOG(INFO)<<"Read "<<D.getSize()<<" entries with "<< D.getfSize()<<" features"; + rsvm->predict(D,L); if (vm.count("validate")) { |