|
X-Boost
2.3.8
|
#include <DataSet.h>
Inherits ParamType.
Inherited by DataSet< Aggregator >, and DecisionTreeLearner< Aggregator >.
Public Types | |
| typedef DataSetHandle< Aggregator > | ViewType |
| a soft copy of the set | |
| typedef DataSet< Aggregator > | StoreType |
| an hard copy of the set | |
Public Member Functions | |
| template<class SrcAggregator > | |
| DataSetHandle (const DataSetHandle< SrcAggregator > &src) | |
| void | Clear () |
| Reset (but not release memory) | |
| unsigned int | Size () const |
| Return number of allocated samples (complete size of DataSet) | |
| void | SetParams (const ParamType &src) |
| const ParamType & | GetParams () const |
| void | Insert (const PatternType &p) |
| add a new pattern to the list | |
| void | Release () |
| Force, manually, to release memory in data. | |
| template<class SrcAggregator > | |
| void | operator= (const DataSetHandle< SrcAggregator > &src) |
| void | Import (const DataType &data, int category) |
Public Attributes | |
|
DECLARE_AGGREGATOR typedef std::vector< PatternType > | ListType |
| unsigned int | n_patternP |
| unsigned int | n_patternN |
| ListType | templates |
| a collection of Pattern used in this dataset | |
A collection of "Patterns", preprocessed data.
Pattern contains all data usefull for train (algorithm dependent data). A dataset that collect pattern but not remove them in the destroyer automatically
Il DataSet deve contenere un vettore di Dati+DatiExtraAlgoritmo oltre ai Parametri per poter estrarre le feature dai Dati. Permette la conversione tra DataSetHandle, copiando solo il descrittore.
TPatternType the type of pattern. Must have at least category member. TParamType parameters of DataType (inside Pattern) to declare the data (for example width,height). Parameters common to all the DataType
[Training]
|
inlineexplicit |
| void DataSetHandle< Aggregator >::Import | ( | const DataType & | data, |
| int | category | ||
| ) |
Import data inside the set
|
inline |
copy operator (copy and convert)
|
inline |
Set the geometry of patterns. All pattern must have the same geometry.
| unsigned int DataSetHandle< Aggregator >::n_patternP |
Number of patterns in two dataset (P: Positive, N: Negative)
1.8.7