mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-12 18:38:06 +00:00
feat(Model): added own Model class, SkLearnModel wrapper and StaticMomentumModel (#61)
* feat(Model): added own `Model` class, SkLearnModel wrapper and StaticMomentumModel * fix(Tests): added missing Model variable * fix(Tests): added missing clone method()
This commit is contained in:
+1
-7
@@ -1,12 +1,6 @@
|
||||
from typing import Protocol, Callable, Union
|
||||
from typing import 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): ...
|
||||
|
||||
|
||||
Period = int
|
||||
IsLogReturn = bool
|
||||
|
||||
Reference in New Issue
Block a user