Matej
08/15/2023, 4:01 PMclass BaseTargetTransform(abc.ABC):
def set_column_names(self, id_col: str, time_col: str, target_col: str):
self.id_col = id_col
self.time_col = time_col
self.target_col = target_col
@abc.abstractmethod
def fit_transform(self, df: 'pd.DataFrame') -> 'pd.DataFrame':
raise NotImplementedError
@abc.abstractmethod
def inverse_transform(self, df: 'pd.DataFrame') -> 'pd.DataFrame':
raise NotImplementedError
Q: How would I go about coding my own MSTL decomposition target transform ?Matej
08/15/2023, 4:05 PMJosé Morales
08/15/2023, 4:23 PMMatej
08/16/2023, 8:18 AM