mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-15 11:58:07 +00:00
feat(Config): feature extractors are enabled one-by-one with a bool, added previous model to model.fit() (#77)
* feat(Config): feature extractors are enabled one-by-one with a bool, added previous model to model.fit() * fix(Sweep): removed unused `other_features` parameter that fails sweep * feat(Config): using preset names for defining feature extractors again * fix(Tests): fixed model stub classes
This commit is contained in:
@@ -42,7 +42,7 @@ class EvenOddStubModel(Model):
|
||||
super().__init__()
|
||||
self.window_length = window_length
|
||||
|
||||
def fit(self, X, y):
|
||||
def fit(self, X, y, prev_model):
|
||||
assert len(X) == self.window_length
|
||||
for i in range(len(X)):
|
||||
assert y[i] == -1 if X[i][0] == 1 else 1
|
||||
|
||||
Reference in New Issue
Block a user