mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-03 22:27:47 +00:00
feat(FeatureExtraction): added fractionally differentiated returns to remove lagged returns (#95)
* feat(FeatureExtraction): added fractionally differentiated returns to remove lagged returns * fix(Sweep): config * fix(Sweep): name * fix(Sweep): grid * feat(Config): separated sliding_window_size_level1 & sliding_window_size_level2 * feat(Dependencies): added ray, now using it to parallel process feature extraction * fix(Dependencies): added pip explicitly * fix(Dependencies): removed ray from root * fix(Models): average model was probably not taking the right timestamp to average * feat(Config): separated expanding_window_level1 & expanding_window_level2 * fix(Config): set n_features_to_select to the optimal 30
This commit is contained in:
committed by
GitHub
parent
cc70d3f907
commit
f762ceed2a
+1
-1
@@ -18,7 +18,7 @@ class StaticAverageModel(Model):
|
||||
def predict(self, X):
|
||||
# Make sure there's data to average
|
||||
assert X.shape[1] > 0
|
||||
prediction = np.average(X[0])
|
||||
prediction = np.average(X[-1])
|
||||
return np.array([prediction])
|
||||
|
||||
def clone(self):
|
||||
|
||||
Reference in New Issue
Block a user