Skip to content
Snippets Groups Projects
Commit ef3143ff authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Do not assert on classification confidence

parent f207ad3d
No related branches found
No related tags found
No related merge requests found
Pipeline #77967 passed
......@@ -332,7 +332,7 @@ class ElementsWorker(BaseWorker):
ml_class, str
), "ml_class shouldn't be null and should be of type str"
assert (
confidence and isinstance(confidence, float) and 0 <= confidence <= 1
isinstance(confidence, float) and 0 <= confidence <= 1
), "confidence shouldn't be null and should be a float in [0..1] range"
assert isinstance(
high_confidence, bool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment