Predict the confidence scores for several test data inputs.
PARAMETER |
DESCRIPTION |
X_test |
numpy array of shape N_SAMPLES x N_FEATURES
TYPE:
np.ndarray
|
RETURNS |
DESCRIPTION |
np.ndarray
|
The array confidence scores of shape N_SAMPLES
|
Source code in phepy/detector.py
| @abc.abstractmethod
def predict(self, X_test: np.ndarray) -> np.ndarray:
"""Predict the confidence scores for several test data inputs.
Args:
X_test:
numpy array of shape `N_SAMPLES x N_FEATURES`
Returns:
The array confidence scores of shape `N_SAMPLES`
"""
pass
|