diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-03-08 17:47:33 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-03-08 17:47:33 +0800 |
commit | f2d01e30f459818f0589e06839d38999aecfdc06 (patch) | |
tree | 9530ac898c1d4cdecbb5194cbd76288e57f7f7b1 /tools/fileDataProvider.h | |
parent | 22882d7113c13cb1e00c59b54050f16ac1b7cc30 (diff) | |
download | ranksvm-f2d01e30f459818f0589e06839d38999aecfdc06.tar.gz ranksvm-f2d01e30f459818f0589e06839d38999aecfdc06.tar.bz2 ranksvm-f2d01e30f459818f0589e06839d38999aecfdc06.zip |
scaffolding
Diffstat (limited to 'tools/fileDataProvider.h')
-rw-r--r-- | tools/fileDataProvider.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/fileDataProvider.h b/tools/fileDataProvider.h index 7937866..fd8f00d 100644 --- a/tools/fileDataProvider.h +++ b/tools/fileDataProvider.h @@ -8,17 +8,18 @@ class FileDP:public DataProvider { private: std::string fname; + bool eof; public: - FileDP(){}; - FileDP(std::string fn):fname(fn){}; - virtual Eigen::MatrixXd* getAttr(){ - return new Eigen::MatrixXd(3,3); + FileDP(std::string fn=""):fname(fn),eof(false){}; + void setFname(std::string fn){fname=fn;}; + virtual int getDataSet(DataSet &out){ + return 0; } - virtual Eigen::VectorXd* getPref(){ - return new Eigen::VectorXd(3); + virtual int getLabel(Labels &out){ + return 0; }; virtual int open(){return 0;}; - virtual bool EOFile(){return true;}; + virtual bool EOFile(){return eof;}; }; #endif
\ No newline at end of file |