11 #ifndef BAGGINGMACHINE_H
12 #define BAGGINGMACHINE_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 int32_t get_bag_size() const
virtual EMachineType get_classifier_type()
int32_t get_num_bags() const
CDynamicArray< index_t > * get_oob_indices(const SGVector< index_t > &in_bag)
SGVector< float64_t > apply_get_outputs(CFeatures *data)
Template Dynamic array class that creates an array that can be used like a list or an array...
virtual CMulticlassLabels * apply_multiclass(CFeatures *data=NULL)
A generic learning machine interface.
SGVector< bool > m_all_oob_idx
CMachine * get_machine() const
Multiclass Labels for multi-class classification.
virtual const char * get_name() const
virtual void set_machine(CMachine *machine)
virtual ~CBaggingMachine()
CDynamicObjectArray * m_bags
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
void set_num_bags(int32_t num_bags)
CDynamicObjectArray * m_oob_indices
all of classes and functions are contained in the shogun namespace
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)
float64_t get_oob_error(CEvaluation *eval) const
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)