Skip to content

Dataset

Abstract class for dataset.

Dataset

Bases: ABC

Abstract class for dataset.

Source code in aiagents4pharma/talk2knowledgegraphs/datasets/dataset.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Dataset(ABC):
    """
    Abstract class for dataset.
    """
    @abstractmethod
    def setup(self):
        """
        A method to set up the dataset.
        """

    @abstractmethod
    def load_data(self):
        """
        A method to load the dataset and potentially preprocess it.
        """

load_data() abstractmethod

A method to load the dataset and potentially preprocess it.

Source code in aiagents4pharma/talk2knowledgegraphs/datasets/dataset.py
19
20
21
22
23
@abstractmethod
def load_data(self):
    """
    A method to load the dataset and potentially preprocess it.
    """

setup() abstractmethod

A method to set up the dataset.

Source code in aiagents4pharma/talk2knowledgegraphs/datasets/dataset.py
13
14
15
16
17
@abstractmethod
def setup(self):
    """
    A method to set up the dataset.
    """