Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
utility::libsvm::Svm_rosetta Class Reference

#include <Svm_rosetta.hh>

Inheritance diagram for utility::libsvm::Svm_rosetta:
Inheritance graph

Public Member Functions

 Svm_rosetta (std::string const &model_filename)
 ~Svm_rosetta () override
platform::Size get_nr_class () const
utility::vector1< platform::Realpredict_probability (utility::vector1< Svm_node_rosettaOP > const &features) const
platform::Real predict (utility::vector1< Svm_node_rosettaOP > const &features) const
- Public Member Functions inherited from utility::VirtualBase
 VirtualBase ()=default
 Default constructor. More...
virtual ~VirtualBase ()=default
 The virtual destructor is one of the main reasons for the VirtualBase class. More...
 VirtualBase (VirtualBase const &)=default
 VirtualBase (VirtualBase &&)=default
VirtualBaseoperator= (VirtualBase const &)=default
VirtualBaseoperator= (VirtualBase &&)=default

Private Attributes


Constructor & Destructor Documentation

utility::libsvm::Svm_rosetta::Svm_rosetta ( std::string const &  model_filename)
utility::libsvm::Svm_rosetta::~Svm_rosetta ( )

Member Function Documentation

platform::Size utility::libsvm::Svm_rosetta::get_nr_class ( ) const

References svm_get_nr_class(), and svm_model_.

platform::Real utility::libsvm::Svm_rosetta::predict ( utility::vector1< Svm_node_rosettaOP > const &  features) const
vector1< platform::Real > utility::libsvm::Svm_rosetta::predict_probability ( utility::vector1< Svm_node_rosettaOP > const &  features) const

Member Data Documentation

svm_model* utility::libsvm::Svm_rosetta::svm_model_

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