diff options
| author | Joe Zhao <ztuowen@gmail.com> | 2015-03-07 12:56:24 +0800 | 
|---|---|---|
| committer | Joe Zhao <ztuowen@gmail.com> | 2015-03-07 12:56:24 +0800 | 
| commit | bddad20b835a83923901106961adc14c5eb6e3db (patch) | |
| tree | 8df3a688287c0907742db2939c8634864c341479 /model | |
| parent | 49fb07f512c98c1b207c1080b642446531ab056a (diff) | |
| download | ranksvm-bddad20b835a83923901106961adc14c5eb6e3db.tar.gz ranksvm-bddad20b835a83923901106961adc14c5eb6e3db.tar.bz2 ranksvm-bddad20b835a83923901106961adc14c5eb6e3db.zip  | |
scaffolding
Diffstat (limited to 'model')
| -rw-r--r-- | model/ranksvm.cpp | 1 | ||||
| -rw-r--r-- | model/ranksvm.h | 22 | 
2 files changed, 23 insertions, 0 deletions
diff --git a/model/ranksvm.cpp b/model/ranksvm.cpp new file mode 100644 index 0000000..38fb70c --- /dev/null +++ b/model/ranksvm.cpp @@ -0,0 +1 @@ +#include"ranksvm.h"
\ No newline at end of file diff --git a/model/ranksvm.h b/model/ranksvm.h new file mode 100644 index 0000000..ba79c48 --- /dev/null +++ b/model/ranksvm.h @@ -0,0 +1,22 @@ +#ifndef RANKSVM_H +#define RANKSVM_H + +#include<Eigen/Dense> +#include<string> +#include"../tools/dataProvider.h" + +class RSVM  //Virtual base class for all RSVM operations +{ +protected: +    Eigen::VectorXd* model; +public: +    virtual int train(DataProvider &D)=0; +    int test(); +    int saveModel(string fname); +    static RSVM loadModel(string fname); +    string getName(); +    Eigen::MatrixXd getModel(); +    Eigen::MatrixXd setModel(); +}; + +#endif
\ No newline at end of file  | 
