Skip to content

Commit

Permalink
fix: fix the common functions and special functions formatting of Ano…
Browse files Browse the repository at this point in the history
…maly detection algorithm
  • Loading branch information
Panyan Weng committed Oct 8, 2024
1 parent 0ed77d1 commit 44c4790
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions geochemistrypi/data_mining/model/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class AnomalyDetectionWorkflowBase(WorkflowBase):
"""The base workflow class of anomaly detection algorithms."""

# common_function = []
common_function = [func.value for func in AnormalyDetectionCommonFunction]

def __init__(self) -> None:
super().__init__()
Expand Down Expand Up @@ -153,7 +153,7 @@ class IsolationForestAnomalyDetection(AnomalyDetectionWorkflowBase):
"""The automation workflow of using Isolation Forest algorithm to make insightful products."""

name = "Isolation Forest"
# special_function = []
special_function = []

def __init__(
self,
Expand Down Expand Up @@ -306,7 +306,8 @@ class LocalOutlierFactorAnomalyDetection(AnomalyDetectionWorkflowBase):
"""The automation workflow of using Local Outlier Factor algorithm to make insightful products."""

name = "Local Outlier Factor"
# special_function = []
special_function = [func.value for func in LocalOutlierFactorSpecialFunction]


def __init__(
self,
Expand Down

0 comments on commit 44c4790

Please sign in to comment.