mirror of
https://github.com/webclinic017/drift.git
synced 2026-07-28 19:27:47 +00:00
e80fffdb65
* refactor(Config): use a Config object instead of dictionary of dictionaries! * fix(Config): use default_ensemble_config * fix(Portfolio): fixed portfolio construction
14 lines
437 B
Python
14 lines
437 B
Python
from typing import Callable, Union, Literal
|
|
import pandas as pd
|
|
|
|
Period = int
|
|
IsLogReturn = bool
|
|
FeatureExtractor = Callable[[pd.DataFrame, Period, IsLogReturn], Union[pd.DataFrame, pd.Series]]
|
|
Name = str
|
|
FeatureExtractorConfig = tuple[Name, FeatureExtractor, list[Period]]
|
|
Path = str
|
|
FileName = str
|
|
DataSource = tuple[Path, FileName]
|
|
DataCollection = list[DataSource]
|
|
|
|
ScalerTypes = Literal['normalize', 'minmax', 'standardize', 'none'] |