remove unnecessary definition of np array

This commit is contained in:
robcaulk 2022-07-19 17:28:38 +02:00
parent 568200cbe8
commit 1b555ba462

View File

@ -676,9 +676,8 @@ class FreqaiDataKitchen:
training than older data.
"""
wfactor = self.config["freqai"]["feature_parameters"]["weight_factor"]
weights = np.zeros(num_weights)
weights[1:] = np.exp(
- np.arange(1, len(weights)) / (wfactor * num_weights))[::-1]
weights = np.exp(
- np.arange(num_weights) / (wfactor * num_weights))[::-1]
return weights
def append_predictions(self, predictions, do_predict, len_dataframe):