Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Feat: add method that change threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
asheswook committed May 29, 2023
1 parent e3792d0 commit 808c27e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions VisageSnap/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ def __init__(self, globalState: GlobalState = None, directory: Directory = None)
def set_directory(self, directory: Directory) -> None:
self.__directory = directory

@property
def threshold(self) -> float:
return self.predictor.threshold

@threshold.setter
def threshold(self, value: float) -> None:
assert isinstance(value, float), "threshold must be float."
self.predictor.threshold = value

def load_model(self) -> None:
"""
This function loads the model.
Expand Down

0 comments on commit 808c27e

Please sign in to comment.