A few examples regarding the plssvm::model class.
int main() {
model.
save(
"path/to/model.libsvm");
return 0;
}
Encapsulate all necessary data that is needed for training or predicting using an SVM.
Definition: data_set.hpp:69
Implements a class encapsulating the result of a call to the SVM fit function. A model is used to pre...
Definition: model.hpp:50
void save(const std::string &filename) const
Save the model to a LIBSVM model file for later usage.
Definition: model.hpp:208
Core header including all other necessary headers.
std::unique_ptr< csvm > make_csvm(const backend_type backend, Args &&...args)
Create a new C-SVM using the backend type and additional parameter args.
Definition: csvm_factory.hpp:158