Coverage for source/model/model_adapters/model_adapter_base.py: 71%
21 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-06-06 12:00 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-06-06 12:00 +0000
1# model/model_adapters/model_adapter_base.py
3# global imports
4from abc import ABC, abstractmethod
5from typing import Any, Callable
7class ModelAdapterBase(ABC):
8 """"""
10 @abstractmethod
11 def load_model(self, path: str) -> None:
12 """"""
14 pass
16 @abstractmethod
17 def save_model(self, path: str) -> None:
18 """"""
20 pass
22 @abstractmethod
23 def print_summary(self, print_function: Callable = print) -> None:
24 """"""
26 pass
28 @abstractmethod
29 def fit(self, input_data: Any, output_data: Any, **kwargs) -> Any:
30 """"""
32 pass
34 @abstractmethod
35 def predict(self, data: Any) -> Any:
36 """"""
38 pass
40 @abstractmethod
41 def get_model(self) -> Any:
42 """"""
44 pass