Public Member Functions | Public Attributes | List of all members
fcl::LibSVMClassifier< N > Class Template Reference

#include <libsvm_classifier.h>

Inheritance diagram for fcl::LibSVMClassifier< N >:
Inheritance graph
[legend]

Public Member Functions

virtual std::vector< Item< N > > getSupportVectors () const
 
virtual void learn (const std::vector< Item< N > > &data)
 
 LibSVMClassifier ()
 
virtual std::vector< PredictResult > predict (const std::vector< Vecnf< N > > &qs) const
 
virtual PredictResult predict (const Vecnf< N > &q) const
 
void save (const std::string &filename) const
 
void setC (FCL_REAL C)
 
void setCSVM ()
 
void setEPS (FCL_REAL e)
 
void setGamma (FCL_REAL gamma)
 
void setLinearClassifier ()
 
void setNegativeWeight (FCL_REAL c)
 
void setNonLinearClassifier ()
 
void setNu (FCL_REAL nu)
 
void setNuSVM ()
 
void setPositiveWeight (FCL_REAL c)
 
void setProbability (bool use_probability)
 
virtual void setScaler (const Scaler< N > &scaler_)
 
 ~LibSVMClassifier ()
 

Public Attributes

double hyperw_normsqr
 
svm_modelmodel
 
svm_parameter param
 
svm_problem problem
 
Scaler< N > scaler
 
svm_nodex_space
 

Detailed Description

template<std::size_t N>
class fcl::LibSVMClassifier< N >

Definition at line 49 of file libsvm_classifier.h.

Constructor & Destructor Documentation

◆ LibSVMClassifier()

template<std::size_t N>
fcl::LibSVMClassifier< N >::LibSVMClassifier ( )
inline

Definition at line 52 of file libsvm_classifier.h.

◆ ~LibSVMClassifier()

template<std::size_t N>
fcl::LibSVMClassifier< N >::~LibSVMClassifier ( )
inline

Definition at line 118 of file libsvm_classifier.h.

Member Function Documentation

◆ getSupportVectors()

template<std::size_t N>
virtual std::vector<Item<N> > fcl::LibSVMClassifier< N >::getSupportVectors ( ) const
inlinevirtual

Definition at line 220 of file libsvm_classifier.h.

◆ learn()

template<std::size_t N>
virtual void fcl::LibSVMClassifier< N >::learn ( const std::vector< Item< N > > &  data)
inlinevirtual

Definition at line 128 of file libsvm_classifier.h.

◆ predict() [1/2]

template<std::size_t N>
virtual std::vector<PredictResult> fcl::LibSVMClassifier< N >::predict ( const std::vector< Vecnf< N > > &  qs) const
inlinevirtual

Definition at line 165 of file libsvm_classifier.h.

◆ predict() [2/2]

template<std::size_t N>
virtual PredictResult fcl::LibSVMClassifier< N >::predict ( const Vecnf< N > &  q) const
inlinevirtual

Definition at line 209 of file libsvm_classifier.h.

◆ save()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::save ( const std::string &  filename) const
inline

Definition at line 214 of file libsvm_classifier.h.

◆ setC()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setC ( FCL_REAL  C)
inline

Definition at line 88 of file libsvm_classifier.h.

◆ setCSVM()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setCSVM ( )
inline

Definition at line 86 of file libsvm_classifier.h.

◆ setEPS()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setEPS ( FCL_REAL  e)
inline

Definition at line 108 of file libsvm_classifier.h.

◆ setGamma()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setGamma ( FCL_REAL  gamma)
inline

Definition at line 113 of file libsvm_classifier.h.

◆ setLinearClassifier()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setLinearClassifier ( )
inline

Definition at line 90 of file libsvm_classifier.h.

◆ setNegativeWeight()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setNegativeWeight ( FCL_REAL  c)
inline

Definition at line 98 of file libsvm_classifier.h.

◆ setNonLinearClassifier()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setNonLinearClassifier ( )
inline

Definition at line 91 of file libsvm_classifier.h.

◆ setNu()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setNu ( FCL_REAL  nu)
inline

Definition at line 89 of file libsvm_classifier.h.

◆ setNuSVM()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setNuSVM ( )
inline

Definition at line 87 of file libsvm_classifier.h.

◆ setPositiveWeight()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setPositiveWeight ( FCL_REAL  c)
inline

Definition at line 103 of file libsvm_classifier.h.

◆ setProbability()

template<std::size_t N>
void fcl::LibSVMClassifier< N >::setProbability ( bool  use_probability)
inline

Definition at line 92 of file libsvm_classifier.h.

◆ setScaler()

template<std::size_t N>
virtual void fcl::LibSVMClassifier< N >::setScaler ( const Scaler< N > &  scaler_)
inlinevirtual

Definition at line 93 of file libsvm_classifier.h.

Member Data Documentation

◆ hyperw_normsqr

template<std::size_t N>
double fcl::LibSVMClassifier< N >::hyperw_normsqr

Definition at line 241 of file libsvm_classifier.h.

◆ model

template<std::size_t N>
svm_model* fcl::LibSVMClassifier< N >::model

Definition at line 240 of file libsvm_classifier.h.

◆ param

template<std::size_t N>
svm_parameter fcl::LibSVMClassifier< N >::param

Definition at line 237 of file libsvm_classifier.h.

◆ problem

template<std::size_t N>
svm_problem fcl::LibSVMClassifier< N >::problem

Definition at line 238 of file libsvm_classifier.h.

◆ scaler

template<std::size_t N>
Scaler<N> fcl::LibSVMClassifier< N >::scaler

Definition at line 243 of file libsvm_classifier.h.

◆ x_space

template<std::size_t N>
svm_node* fcl::LibSVMClassifier< N >::x_space

Definition at line 239 of file libsvm_classifier.h.


The documentation for this class was generated from the following file:


fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:50