Ensure we are nort our own peer

This commit is contained in:
Dominik Moritz Roth 2024-05-25 21:39:57 +02:00
parent b9d531a97b
commit e7803b523a

View File

@ -35,6 +35,7 @@ def compute_correlation_matrix(data):
trimmed_data = [d[:min_length] for d in data] trimmed_data = [d[:min_length] for d in data]
corr_matrix = np.corrcoef(trimmed_data) corr_matrix = np.corrcoef(trimmed_data)
np.fill_diagonal(corr_matrix, 0)
return corr_matrix return corr_matrix
def split_data_by_time(data, split_ratio=0.5): def split_data_by_time(data, split_ratio=0.5):