Commit 992f682f authored by Martin Larralde's avatar Martin Larralde
Browse files

Change default probability threshold for segmentation from 0.4 to 0.3

parent 4303538d
......@@ -106,7 +106,7 @@ class Run(Annotate): # noqa: D101
optional=True,
)
if self.args["--threshold"] is None:
self.threshold = 0.4 if self.args["--postproc"] == "gecco" else 0.6
self.threshold = 0.3 if self.args["--postproc"] == "gecco" else 0.6
else:
self.threshold = self._check_flag("--threshold", float, lambda x: 0 <= x <= 1, hint="number between 0 and 1")
self.jobs = self._check_flag("--jobs", int, lambda x: x >= 0, hint="positive or null integer")
......
......@@ -70,7 +70,7 @@ class ClusterRefiner:
def __init__(
self,
threshold: float = 0.4,
threshold: float = 0.3,
criterion: str = "gecco",
n_cds: int = 5,
n_biopfams: int = 5,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment