Skip to content

Commit

Permalink
Merge pull request #76 from nebgnahz/master
Browse files Browse the repository at this point in the history
Stop feature extraction if early stage is not ready
  • Loading branch information
nickgillian authored Jul 20, 2016
2 parents 3ee7ffe + fda0b92 commit e9b1148
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GRT/CoreModules/GestureRecognitionPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ bool GestureRecognitionPipeline::train( const TimeSeriesClassificationData &trai
//or converted to the LabelledClassificationData format
inputVector = featureExtractionModules[moduleIndex]->getFeatureVector();
featureDataReady = featureExtractionModules[moduleIndex]->getFeatureDataReady();

//If feature data is not ready at any stage, stop the rest of the pipeline.
if( !featureDataReady ) { break; }
}

//The feature extraction modules should only be reset on r == 0
Expand Down

0 comments on commit e9b1148

Please sign in to comment.