Browse Source

minor fix

Johannes Ruehle 11 years ago
parent
commit
759a922f5d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cbaselib/Example.cpp

+ 2 - 2
cbaselib/Example.cpp

@@ -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 ) );
     }