Skip to content

Commit

Permalink
Change default probability threshold for segmentation from 0.4 to 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Aug 23, 2021
1 parent 4303538 commit 992f682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gecco/cli/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _check(self) -> typing.Optional[int]:
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")
Expand Down
2 changes: 1 addition & 1 deletion gecco/refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 992f682

Please sign in to comment.