-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from abc import ABC, abstractmethod | ||
import logging | ||
from numpy import array | ||
|
||
|
||
class BaseDriftDetector(ABC): | ||
def __init__(self) -> None: | ||
super().__init__() | ||
self.logger = logging.getLogger(self.__class__.__name__) | ||
|
||
@abstractmethod | ||
def is_drifted(self, feat_vec: array) -> bool: | ||
""" | ||
Check if the given feature vector indicates drift. | ||
Parameters: | ||
feat_vec (array): The feature vector to be checked for drift. | ||
Returns: | ||
bool: True if the feature vector indicates drift, False otherwise. | ||
""" | ||
... |