summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-06-05 10:32:02 +0800
committerJoe Zhao <ztuowen@gmail.com>2015-06-05 10:32:02 +0800
commit3c62d2ca6c0c9cd7c8e72c9abf9d58e311b9b2e1 (patch)
treeb0ee92826b5a06034d49f903ff7b4df111d951c3
parentb44da2a2ab11425961014a39994484c92626ce58 (diff)
downloadranksvm-3c62d2ca6c0c9cd7c8e72c9abf9d58e311b9b2e1.tar.gz
ranksvm-3c62d2ca6c0c9cd7c8e72c9abf9d58e311b9b2e1.tar.bz2
ranksvm-3c62d2ca6c0c9cd7c8e72c9abf9d58e311b9b2e1.zip
decouple c
-rw-r--r--model/ranksvmtn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/ranksvmtn.cpp b/model/ranksvmtn.cpp
index 15a5e10..280f32a 100644
--- a/model/ranksvmtn.cpp
+++ b/model/ranksvmtn.cpp
@@ -261,7 +261,7 @@ int RSVMTN::train(RidList &D){
LOG(INFO)<<"Processing input";
for (i=0;i<D.getSize();++i)
corr(i)=D.getL(i)>0?0.5:-0.5;
- RC=2.0*C;
+ RC=2.0*C/D.getSize();
train_orig(fsize,D,corr,model.weight);
return 0;
};