X-Boost  2.3.8
Classes | Functions
WeightedPattern.h File Reference

extend Pattern object with a weight More...

#include "Pattern.h"
#include "DataSet.h"
#include <iostream>

Go to the source code of this file.

Classes

struct  WeightedPattern< Descriptor >
 

Functions

template<class DataSet >
void ResetWeight (DataSet &list, double priori_knownledge)
 

Detailed Description

extend Pattern object with a weight

Function Documentation

template<class DataSet >
void ResetWeight ( DataSet list,
double  priori_knownledge 
)

Reset pattern weights.

Parameters
priori_knownledgeweight of positive patterns. If it is <0 then weight = 1/Size(), else if >0: weight_i = 1/n_i;
Todo:
deal with asymmetric adaboost and not use priori_knownledge