summaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-05-14 11:23:27 +0800
committerJoe Zhao <ztuowen@gmail.com>2015-05-14 11:23:27 +0800
commit4fd46f811f680f81efc858b788b0335427dbf26e (patch)
treeb9cc28cc97f844760be5ed44c2b5a70179a665cd /model
parent565b014e8102a36673a000e1ceb720ec20eceaf0 (diff)
downloadranksvm-4fd46f811f680f81efc858b788b0335427dbf26e.tar.gz
ranksvm-4fd46f811f680f81efc858b788b0335427dbf26e.tar.bz2
ranksvm-4fd46f811f680f81efc858b788b0335427dbf26e.zip
c
Diffstat (limited to 'model')
-rw-r--r--model/ranksvm.cpp2
-rw-r--r--model/ranksvm.h2
-rw-r--r--model/ranksvmtn.cpp1
3 files changed, 4 insertions, 1 deletions
diff --git a/model/ranksvm.cpp b/model/ranksvm.cpp
index 7ee72ac..bb50126 100644
--- a/model/ranksvm.cpp
+++ b/model/ranksvm.cpp
@@ -8,6 +8,8 @@
using namespace Eigen;
using namespace std;
+double C=1e-4;// Compensating & scaling
+
int RSVM::saveModel(const string fname){
std::ofstream fout(fname.c_str());
diff --git a/model/ranksvm.h b/model/ranksvm.h
index 58cd7f0..9051343 100644
--- a/model/ranksvm.h
+++ b/model/ranksvm.h
@@ -37,4 +37,6 @@ public:
int setModel(const SVMModel &model);
};
+extern double C;// Compensating & scaling
+
#endif \ No newline at end of file
diff --git a/model/ranksvmtn.cpp b/model/ranksvmtn.cpp
index 3136426..3d0db5f 100644
--- a/model/ranksvmtn.cpp
+++ b/model/ranksvmtn.cpp
@@ -6,7 +6,6 @@
using namespace std;
using namespace Eigen;
-const double C=1e-4; // Compensating & scaling
// Main terminating criteria
const int maxiter = 60; // max iteration count
const double prec=1e-10; // precision