11 #ifndef BAGGINGMACHINE_H
12 #define BAGGINGMACHINE_H
118 virtual const char*
get_name()
const {
return "BaggingMachine"; }
132 void register_parameters();
144 void clear_oob_indicies();
virtual CRegressionLabels * apply_regression(CFeatures *data=NULL)
void set_combination_rule(CCombinationRule *rule)
Real Labels are real-valued labels.
CCombinationRule * get_combination_rule() const
The class Labels models labels, i.e. class assignments of objects.
virtual bool train_machine(CFeatures *data=NULL)
int32_t get_bag_size() const
virtual EMachineType get_classifier_type()
int32_t get_num_bags() const
SGVector< float64_t > apply_get_outputs(CFeatures *data)
virtual CMulticlassLabels * apply_multiclass(CFeatures *data=NULL)
A generic learning machine interface.
CMachine * get_machine() const
Multiclass Labels for multi-class classification.
virtual const char * get_name() const
void set_machine(CMachine *machine)
virtual ~CBaggingMachine()
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)
Template Dynamic array class that creates an array that can be used like a list or an array...
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...
void set_bag_size(int32_t bag_size)