mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-15 11:58:07 +00:00
feat(Data): added feature extractors, and feature extractor presets, removed a bunch of custom arguments from load_data (#42)
This commit is contained in:
+8
-2
@@ -1,7 +1,13 @@
|
||||
from typing import Protocol
|
||||
from typing import Protocol, Callable, Union
|
||||
import pandas as pd
|
||||
|
||||
class SKLearnModel(Protocol):
|
||||
def fit(self, X, y, sample_weight=None): ...
|
||||
def predict(self, X): ...
|
||||
def score(self, X, y, sample_weight=None): ...
|
||||
def set_params(self, **params): ...
|
||||
def set_params(self, **params): ...
|
||||
|
||||
|
||||
Period = int
|
||||
IsLogReturn = bool
|
||||
FeatureExtractor = Callable[[pd.DataFrame, Period, IsLogReturn], Union[pd.DataFrame, pd.Series]]
|
||||
Reference in New Issue
Block a user