Cover egde case: Negative correlation in lead activations

This commit is contained in:
Dominik Moritz Roth 2024-05-26 23:55:31 +02:00
parent a7d6e61e0d
commit 90af40b317

View File

@ -36,7 +36,7 @@ def compute_topology_metrics(data):
metric_matrix = np.corrcoef(trimmed_data)
np.fill_diagonal(metric_matrix, 0)
return metric_matrix
return np.abs(metric_matrix)
def split_data_by_time(data, split_ratio=0.5):
train_data = []