11 #ifndef BAGGINGMACHINE_H 12 #define BAGGINGMACHINE_H 14 #include <shogun/lib/config.h> 20 class CCombinationRule;
121 virtual const char*
get_name()
const {
return "BaggingMachine"; }
virtual CRegressionLabels * apply_regression(CFeatures *data=NULL)
void register_parameters()
void set_combination_rule(CCombinationRule *rule)
Real Labels are real-valued labels.
CCombinationRule * m_combination_rule
CCombinationRule * get_combination_rule() const
The class Labels models labels, i.e. class assignments of objects.
virtual bool train_machine(CFeatures *data=NULL)
virtual void set_machine_parameters(CMachine *m, SGVector< index_t > idx)
virtual EMachineType get_classifier_type()
CDynamicArray< index_t > * get_oob_indices(const SGVector< index_t > &in_bag)
SGVector< float64_t > apply_get_outputs(CFeatures *data)
virtual CMulticlassLabels * apply_multiclass(CFeatures *data=NULL)
A generic learning machine interface.
SGVector< bool > m_all_oob_idx
virtual int32_t get_bag_size() const
Multiclass Labels for multi-class classification.
virtual const char * get_name() const
virtual void set_machine(CMachine *machine)
virtual ~CBaggingMachine()
int32_t get_num_bags() const
CDynamicObjectArray * m_bags
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
float64_t get_oob_error(CEvaluation *eval) const
void set_num_bags(int32_t num_bags)
Template Dynamic array class that creates an array that can be used like a list or an array...
CDynamicObjectArray * m_oob_indices
all of classes and functions are contained in the shogun namespace
CMachine * get_machine() const
The class Features is the base class of all feature objects.
CombinationRule abstract class The CombinationRule defines an interface to how to combine the classif...
Binary Labels for binary classification.
: Bagging algorithm i.e. bootstrap aggregating
virtual CBinaryLabels * apply_binary(CFeatures *data=NULL)
Class Evaluation, a base class for other classes used to evaluate labels, e.g. accuracy of classifica...
virtual void set_bag_size(int32_t bag_size)