Coverage for source/agent/strategies/classification_testable.py: 83%
6 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-07-30 20:59 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-07-30 20:59 +0000
1# agent/strategies/classification_testable.py
3# global imports
4import pandas as pd
5from abc import ABC, abstractmethod
7# local imports
9class ClassificationTestable(ABC):
10 """
11 Implements an abstract base class for classification testable agents.
12 """
14 @abstractmethod
15 def classify(self, data: pd.DataFrame) -> list[list[float]]:
16 """
17 Classifies the input data using the trained model.
19 Parameters:
20 data (pd.DataFrame): The input data to be classified.
22 Returns:
23 (list[list[float]]): The predicted class probabilities for each input sample.
24 """
26 pass