Skip to content
Snippets Groups Projects
Commit 4eb47d19 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[libs.segmentation.scripts.evaluate] Fix unreachable code

parent aa2abdaf
No related branches found
No related tags found
1 merge request!46Create common library
...@@ -32,9 +32,6 @@ def validate_threshold(threshold: float | str, splits: list[str]): ...@@ -32,9 +32,6 @@ def validate_threshold(threshold: float | str, splits: list[str]):
------- -------
The validated threshold. The validated threshold.
""" """
if threshold is None:
return 0.5
try: try:
# we try to convert it to float first # we try to convert it to float first
threshold = float(threshold) threshold = float(threshold)
......
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