Skip to content

Commit

Permalink
void to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
genekogan committed Oct 29, 2018
1 parent b7d4ac4 commit 6006cea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions apps/ConvnetPredictor/src/PipelineThreaded.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ void RegressionThreaded::setupModel(const int type) {
}
}

void CategoricalThreaded::clear() {
bool CategoricalThreaded::clear() {
trainingData.clear();
PipelineThreaded::clear();
return PipelineThreaded::clear();
}

void RegressionThreaded::clear() {
bool RegressionThreaded::clear() {
trainingData.clear();
PipelineThreaded::clear();
return PipelineThreaded::clear();
}

bool CategoricalThreaded::addSample(VectorFloat *inputVector) {
Expand Down
6 changes: 3 additions & 3 deletions apps/ConvnetPredictor/src/PipelineThreaded.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PipelineThreaded : public ofThread, public GestureRecognitionPipeline {

virtual void setup(string name, ofxPanel *panelRef, int inputSize) {}
virtual void setupModel(const int type) {}
virtual void clear() {}
virtual bool clear() {}

virtual bool addSample(VectorFloat *inputVector) {return false;}
virtual bool predict(VectorFloat *inputVector) {}
Expand All @@ -38,7 +38,7 @@ class CategoricalThreaded : public PipelineThreaded {

void setup(string name, ofxPanel *panelRef, int inputSize, int numClasses);
void setupModel(const int type);
void clear();
bool clear();

bool addSample(VectorFloat *inputVector);
bool predict(VectorFloat *inputVector);
Expand All @@ -56,7 +56,7 @@ class RegressionThreaded : public PipelineThreaded {
public:
void setup(string name, ofxPanel *panelRef, int inputSize);
void setupModel(const int type);
void clear();
bool clear();

bool addSample(VectorFloat *inputVector);
bool predict(VectorFloat *inputVector);
Expand Down

0 comments on commit 6006cea

Please sign in to comment.