X-Boost  2.3.8
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MultiClassDecisionStumpSingleThreshold< DataType > Struct Template Reference

A simple decision stump for multiclass problem using only one threshold for all problems. More...

#include <MultiClassDecisionStump.h>

Public Member Functions

 MultiClassDecisionStumpSingleThreshold (int n_classes)
 initialize the vector memory
 
void evaluate_feature (int *response, DataType value) const
 convert the feature value to {-1,+1} using internal threshold
 

Static Public Member Functions

static std::string signature ()
 

Public Attributes

DataType th
 threshold value
 
std::vector< int > responses
 

Detailed Description

template<class DataType>
struct MultiClassDecisionStumpSingleThreshold< DataType >

A simple decision stump for multiclass problem using only one threshold for all problems.

Member Data Documentation

template<class DataType>
std::vector<int> MultiClassDecisionStumpSingleThreshold< DataType >::responses

positive or negative response to the class TODO: use a bitset


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