2022-01-04 11:44:35 +01:00
|
|
|
from typing import Callable, Union, Literal
|
2021-12-19 12:14:59 +01:00
|
|
|
import pandas as pd
|
2021-12-14 21:07:03 +01:00
|
|
|
|
2021-12-19 12:14:59 +01:00
|
|
|
Period = int
|
|
|
|
|
IsLogReturn = bool
|
2021-12-23 10:35:20 +01:00
|
|
|
FeatureExtractor = Callable[[pd.DataFrame, Period, IsLogReturn], Union[pd.DataFrame, pd.Series]]
|
|
|
|
|
Name = str
|
2021-12-31 19:04:27 +01:00
|
|
|
FeatureExtractorConfig = tuple[Name, FeatureExtractor, list[Period]]
|
|
|
|
|
Path = str
|
|
|
|
|
FileName = str
|
|
|
|
|
DataSource = list[tuple[Path, FileName]]
|
2022-01-04 11:44:35 +01:00
|
|
|
DataCollection = list[DataSource]
|
|
|
|
|
|
|
|
|
|
ScalerTypes = Literal['normalize', 'minmax', 'standardize', 'none']
|