Download this file

24 lines (19 with data), 409 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3
"""
Abstract class for dataset.
"""
from abc import ABC, abstractmethod
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.
"""