1234567891011121314151617181920212223 |
- import os
- import numpy as np
- import pandas as pd
- __all__ = ["BaseLoader"]
- class BaseLoader:
- def __init__(self, path: "str"):
- self.have: "np.ndarray" = np.array([])
- self.test: "np.ndarray" = np.array([])
- self.none: "np.ndarray" = np.array([])
- self._load(path)
- def _load(self, path: "str") -> "None":
- raise NotImplementedError("you should implement func: `_load(path)`.")
- def toh(self, file: "str") -> "None":
- raise NotImplementedError("you should implement func: `toh(file)`.")
- def toc(self, file: "str") -> "None":
- raise NotImplementedError("you should implement func: `toc(file)`.")
|