Commit c2a968fb authored by Adrien Dorsaz's avatar Adrien Dorsaz

Remove useless qDebug() messages

parent 287f2858
......@@ -165,7 +165,6 @@ void Emotions::getClassifiers(){
in.setVersion(QDataStream::Qt_4_8);
in>>*_arousalClassifier;
in>>*_valenceClassifier;
printf("Finish to read classifiers");
}
void Emotions::resetCurrData(){
......
......@@ -43,7 +43,6 @@ void MyCallback::getData(Sbs2Packet *packet)
// colorOfMind : Valence = (left beta power)/(left alpha power) – (right beta power)/(right alpha power)
double valence = (af3_beta/af3_alpha - af4_beta/af4_alpha);
//qDebug()<<"arousal : "<<arousal<<" and valence : "<<valence<<" emited";
emit arousalValence(arousal,valence);
}
......
......@@ -45,7 +45,7 @@ QString NaiveBayesClassifier::classify(QMap<double, double> *featureSet){
}
foreach(QString klass, classProbability->keys()){
qDebug()<<klass<<" has prob. "<<classProbability->value(klass)<< " and size "<<_trainedClasses->value(klass)->size();
qDebug()<<"Finally class "<<klass<<" has prob. "<<classProbability->value(klass)<< " and size "<<_trainedClasses->value(klass)->size();
}
QString resultClass="";
......@@ -55,7 +55,7 @@ QString NaiveBayesClassifier::classify(QMap<double, double> *featureSet){
resultClass=klass;
}
if(classProbability->value(klass)>classProbability->value(resultClass)){
if(classProbability->value(klass) > classProbability->value(resultClass)){
resultClass=klass;
}
}
......@@ -70,7 +70,6 @@ double NaiveBayesClassifier::probability(double feature, QString klass){
double den = _totalFeatureOccurrences->value(feature)+_trainedClasses->size();
prob=num/den;
}
qDebug()<<"Probability for klass : "<<klass<<" and feature : "<<feature<<" is "<<prob;
return prob;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment