remove unnecessary definition of np array
This commit is contained in:
parent
568200cbe8
commit
1b555ba462
@ -676,9 +676,8 @@ class FreqaiDataKitchen:
|
|||||||
training than older data.
|
training than older data.
|
||||||
"""
|
"""
|
||||||
wfactor = self.config["freqai"]["feature_parameters"]["weight_factor"]
|
wfactor = self.config["freqai"]["feature_parameters"]["weight_factor"]
|
||||||
weights = np.zeros(num_weights)
|
weights = np.exp(
|
||||||
weights[1:] = np.exp(
|
- np.arange(num_weights) / (wfactor * num_weights))[::-1]
|
||||||
- np.arange(1, len(weights)) / (wfactor * num_weights))[::-1]
|
|
||||||
return weights
|
return weights
|
||||||
|
|
||||||
def append_predictions(self, predictions, do_predict, len_dataframe):
|
def append_predictions(self, predictions, do_predict, len_dataframe):
|
||||||
|
Loading…
Reference in New Issue
Block a user