You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def _compute_statistics(self, num_cases: int, predictionTargetWindow: np.ndarray, correlation_per_window: np.ndarray, target):
self.bestDic = {index: correlation_per_window[index] for index in self.best_windows_index}
self.worstDic = {index: correlation_per_window[index] for index in self.worst_windows_index}
self.bestSorted = sorted(self.bestDic.items(), reverse=True, key=lambda x: x[1])
self.worstSorted = sorted(self.worstDic.items(), key=lambda x: x[1])
# TODO Probablemente solamente guardar bestSorted y tratarlo con el nombre de bestDic o best_windows, además de solo contemplar hasta num_cases
self.bestSorted = self.bestSorted[0:num_cases]
self.worstSorted = self.worstSorted[0:num_cases]
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: