diff --git a/src/clickTrainDetector/classification/simplechi2classifier/Chi2ThresholdClassifier.java b/src/clickTrainDetector/classification/simplechi2classifier/Chi2ThresholdClassifier.java index e7b78e7d..ed502829 100644 --- a/src/clickTrainDetector/classification/simplechi2classifier/Chi2ThresholdClassifier.java +++ b/src/clickTrainDetector/classification/simplechi2classifier/Chi2ThresholdClassifier.java @@ -101,6 +101,7 @@ public class Chi2ThresholdClassifier implements CTClassifier { count = count+1.; } } + if (count/clickTrain.getSubDetectionsCount()>=clssfrParams.minPercentage) { return true; } diff --git a/src/clickTrainDetector/classification/standardClassifier/StandardClassifier.java b/src/clickTrainDetector/classification/standardClassifier/StandardClassifier.java index db3c7ef2..c86c2ae4 100644 --- a/src/clickTrainDetector/classification/standardClassifier/StandardClassifier.java +++ b/src/clickTrainDetector/classification/standardClassifier/StandardClassifier.java @@ -148,7 +148,7 @@ public class StandardClassifier implements CTClassifier { // + " sub species: "+ classifiers.get(i).getParams().speciesFlag + " standard species: " +speciesID + " use? : " + standardClssfrParams.enable[i]); if (standardClssfrParams.enable[i]) { - if (ctClassification[i].getSpeciesID() < 0){ + if (ctClassification[i].getSpeciesID() <= CTClassifier.NOSPECIES){ speciesID = CTClassifier.NOSPECIES; } }