|
@@ -208,8 +208,8 @@ bool Examples::wrapExamplesAroundFeatureMatrix(const Matrix &p_MatFeaturesColumW
|
|
|
for (size_t i = 0; i < t_iNumSamples; i++, pDataPtr+= t_iNumFeatures )
|
|
|
{
|
|
|
NICE::Vector *t_pVecTrainData = new NICE::Vector( pDataPtr , t_iNumFeatures);
|
|
|
- OBJREC::Example t_Example;
|
|
|
- t_Example.vec = t_pVecTrainData;
|
|
|
+ double t_fWeight = 1.0f;
|
|
|
+ OBJREC::Example t_Example(t_pVecTrainData, t_fWeight);
|
|
|
|
|
|
p_Examples.push_back( std::pair<int, OBJREC::Example>( (int)p_VecLabels[i], t_Example ) );
|
|
|
}
|