Attempt to reduce false positives
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
11e0aaf0c3
commit
1f25ad8373
@ -130,7 +130,7 @@ class SoundPreProcessor(AbcPreProcessor):
|
|||||||
f"Sample {file_path} identified as {self._classes[class_id]} with the probablility of {probability[class_id]}"
|
f"Sample {file_path} identified as {self._classes[class_id]} with the probablility of {probability[class_id]}"
|
||||||
)
|
)
|
||||||
|
|
||||||
return bool(class_id == self._target_id)
|
return bool((class_id == self._target_id) and (probability > 0.5))
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user