ThunderSVM
ThunderSVM: An Open-Source SVM Library on GPUs and CPUs
svr.h
1 //
2 // Created by jiashuai on 17-10-5.
3 //
4 
5 #ifndef THUNDERSVM_SVR_H
6 #define THUNDERSVM_SVR_H
7 
8 #include "thundersvm/thundersvm.h"
9 #include "svmmodel.h"
10 #include <map>
11 
12 using std::map;
13 
17 class SVR : public SvmModel {
18 public:
19  void train(const DataSet &dataset, SvmParam param) override;
20 
21 protected:
27  void save_svr_coef(const SyncArray<float_type> &alpha_2, const DataSet::node2d &instances);
28 };
29 
30 #endif //THUNDERSVM_SVR_H
Support Vector Machine for regression.
Definition: svr.h:17
Dataset reader.
Definition: dataset.h:14
void train(const DataSet &dataset, SvmParam param) override
Definition: svr.cpp:9
void save_svr_coef(const SyncArray< float_type > &alpha_2, const DataSet::node2d &instances)
Definition: svr.cpp:39
params for ThunderSVM
Definition: svmparam.h:13
Abstract class for different SVM models.
Definition: svmmodel.h:18