We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f97558 commit aeb907eCopy full SHA for aeb907e
InferenceSystem/src/model/fastai_inference.py
@@ -168,7 +168,7 @@ def predict(self, wav_file_path):
168
local_confidences=list(submission['confidence'])
169
)
170
171
- result_json['global_prediction'] = int(sum(result_json["local_predictions"]) > self.min_num_positive_calls_threshold)
+ result_json['global_prediction'] = int(sum(result_json["local_predictions"]) >= self.min_num_positive_calls_threshold)
172
result_json['global_confidence'] = submission.loc[(submission['confidence'] > self.threshold), 'confidence'].mean()*100
173
if pd.isnull(result_json["global_confidence"]):
174
result_json["global_confidence"] = 0
0 commit comments