Feat C++ API
A feature engineering automation tool
shogun::CMulticlassLogisticRegression Class Reference

multiclass logistic regression More...

#include <MulticlassLogisticRegression.h>

Inheritance diagram for shogun::CMulticlassLogisticRegression:
Collaboration diagram for shogun::CMulticlassLogisticRegression:

Public Member Functions

 CMulticlassLogisticRegression ()
 
 CMulticlassLogisticRegression (float64_t z, CDotFeatures *feats, CLabels *labs)
 
 ~CMulticlassLogisticRegression ()
 
virtual const char * get_name () const
 
void set_z (float64_t z)
 
float64_t get_z () const
 
void set_epsilon (float64_t epsilon)
 
float64_t get_epsilon () const
 
void set_max_iter (int32_t max_iter)
 
int32_t get_max_iter () const
 
vector< SGVector< float64_t > > get_w ()
 
void set_w (vector< Eigen::VectorXd > &wnew)
 
vector< float64_t > get_bias ()
 

Protected Member Functions

virtual bool train_machine (CFeatures *data=NULL)
 

Protected Attributes

float64_t m_z
 
float64_t m_epsilon
 
int32_t m_max_iter
 

Private Member Functions

void init_defaults ()
 
void register_parameters ()
 

Detailed Description

multiclass logistic regression

Definition at line 35 of file MulticlassLogisticRegression.h.

Constructor & Destructor Documentation

◆ CMulticlassLogisticRegression() [1/2]

shogun::CMulticlassLogisticRegression::CMulticlassLogisticRegression ( )

default constructor

Definition at line 48 of file MulticlassLogisticRegression.cc.

◆ CMulticlassLogisticRegression() [2/2]

shogun::CMulticlassLogisticRegression::CMulticlassLogisticRegression ( float64_t  z,
CDotFeatures *  feats,
CLabels *  labs 
)

standard constructor

Parameters
zz regularization constant value
featsfeatures
labslabels

Definition at line 54 of file MulticlassLogisticRegression.cc.

◆ ~CMulticlassLogisticRegression()

shogun::CMulticlassLogisticRegression::~CMulticlassLogisticRegression ( )

destructor

machine

Definition at line 75 of file MulticlassLogisticRegression.cc.

Member Function Documentation

◆ get_bias()

vector< float64_t > shogun::CMulticlassLogisticRegression::get_bias ( )

get biases

Definition at line 129 of file MulticlassLogisticRegression.cc.

◆ get_epsilon()

float64_t shogun::CMulticlassLogisticRegression::get_epsilon ( ) const
inline

get epsilon

Returns
epsilon value

Definition at line 36 of file MulticlassLogisticRegression.cc.

◆ get_max_iter()

int32_t shogun::CMulticlassLogisticRegression::get_max_iter ( ) const
inline

get max iter

Returns
max iter value

Definition at line 44 of file MulticlassLogisticRegression.cc.

◆ get_name()

const char * shogun::CMulticlassLogisticRegression::get_name ( ) const
virtual

get name

Definition at line 17 of file MulticlassLogisticRegression.cc.

◆ get_w()

vector< SGVector< float64_t > > shogun::CMulticlassLogisticRegression::get_w ( )

get weights

Definition at line 113 of file MulticlassLogisticRegression.cc.

◆ get_z()

float64_t shogun::CMulticlassLogisticRegression::get_z ( ) const
inline

get C

Returns
C value

Definition at line 28 of file MulticlassLogisticRegression.cc.

◆ init_defaults()

void shogun::CMulticlassLogisticRegression::init_defaults ( )
private

init defaults

Definition at line 61 of file MulticlassLogisticRegression.cc.

◆ register_parameters()

void shogun::CMulticlassLogisticRegression::register_parameters ( )
private

register parameters

Definition at line 68 of file MulticlassLogisticRegression.cc.

◆ set_epsilon()

void shogun::CMulticlassLogisticRegression::set_epsilon ( float64_t  epsilon)

set epsilon

Parameters
epsilonepsilon value

Definition at line 30 of file MulticlassLogisticRegression.cc.

◆ set_max_iter()

void shogun::CMulticlassLogisticRegression::set_max_iter ( int32_t  max_iter)

set max iter

Parameters
max_itermax iter value

Definition at line 38 of file MulticlassLogisticRegression.cc.

◆ set_w()

void shogun::CMulticlassLogisticRegression::set_w ( vector< Eigen::VectorXd > &  wnew)

Definition at line 145 of file MulticlassLogisticRegression.cc.

◆ set_z()

void shogun::CMulticlassLogisticRegression::set_z ( float64_t  z)

set z

Parameters
zz value

Definition at line 22 of file MulticlassLogisticRegression.cc.

◆ train_machine()

bool shogun::CMulticlassLogisticRegression::train_machine ( CFeatures *  data = NULL)
protectedvirtual

train machine

Definition at line 159 of file MulticlassLogisticRegression.cc.

Member Data Documentation

◆ m_epsilon

float64_t shogun::CMulticlassLogisticRegression::m_epsilon
protected

tolerance

Definition at line 113 of file MulticlassLogisticRegression.h.

◆ m_max_iter

int32_t shogun::CMulticlassLogisticRegression::m_max_iter
protected

max number of iterations

Definition at line 116 of file MulticlassLogisticRegression.h.

◆ m_z

float64_t shogun::CMulticlassLogisticRegression::m_z
protected

regularization constant for each machine

Definition at line 110 of file MulticlassLogisticRegression.h.


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