From adce3e024e34ebd02c47ee3c7e6582131df47d65 Mon Sep 17 00:00:00 2001 From: Alex <95913221+Pwhsky@users.noreply.github.com> Date: Fri, 19 Sep 2025 13:37:45 +0200 Subject: [PATCH 1/2] lodestar typos --- deeplay/applications/detection/lodestar/lodestar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deeplay/applications/detection/lodestar/lodestar.py b/deeplay/applications/detection/lodestar/lodestar.py index d7e7b2e7..8782929c 100644 --- a/deeplay/applications/detection/lodestar/lodestar.py +++ b/deeplay/applications/detection/lodestar/lodestar.py @@ -175,7 +175,7 @@ def detect(self, x, alpha=0.5, beta=0.5, cutoff=0.97, mode="quantile"): x : array-like Input to model alpha, beta: float - Geometric weight of the weight-map vs the consistenct metric for detection. + Geometric weight of the weight-map vs the consistency metric for detection. cutoff: float Threshold for detection mode: string @@ -223,7 +223,7 @@ def detect_single( y_pred, weights: array-like Output from model alpha, beta: float - Geometric weight of the weight-map vs the consistenct metric for detection. + Geometric weight of the weight-map vs the consistency metric for detection. cutoff: float Threshold for detection mode: string @@ -285,11 +285,11 @@ def get_detection_score(cls, pred, weights, alpha=0.5, beta=0.5): pred, weights: array-like Output from model alpha, beta: float - Geometric weight of the weight-map vs the consistenct metric for detection. + Geometric weight of the weight-map vs the consistency metric for detection. """ return ( weights[0].detach().cpu().numpy() ** alpha - * cls.local_consistency(pred) ** beta + * cls.local_y(pred) ** beta ) def train_preprocess(self, batch): From 5ed61b36a3bcb14810158697c36bcc46a7eb6053 Mon Sep 17 00:00:00 2001 From: Alex <95913221+Pwhsky@users.noreply.github.com> Date: Fri, 19 Sep 2025 13:39:15 +0200 Subject: [PATCH 2/2] Update lodestar.py --- deeplay/applications/detection/lodestar/lodestar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deeplay/applications/detection/lodestar/lodestar.py b/deeplay/applications/detection/lodestar/lodestar.py index 8782929c..cc24e4df 100644 --- a/deeplay/applications/detection/lodestar/lodestar.py +++ b/deeplay/applications/detection/lodestar/lodestar.py @@ -289,7 +289,7 @@ def get_detection_score(cls, pred, weights, alpha=0.5, beta=0.5): """ return ( weights[0].detach().cpu().numpy() ** alpha - * cls.local_y(pred) ** beta + * cls.local_consistency(pred) ** beta ) def train_preprocess(self, batch):