Skip to content

Commit

Permalink
division of test data by training standard deviation
Browse files Browse the repository at this point in the history
  • Loading branch information
htjb committed Jan 16, 2024
1 parent 9f2651a commit 8503dec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions globalemu/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,8 @@ def load_data(file):
norm_train_labels = norm_train_labels.flatten()
np.save(self.base_dir + 'labels_stds.npy', labels_stds)

test_labels_stds = test_labels.std()
norm_test_labels = [
test_labels[i, :]/test_labels_stds
test_labels[i, :]/labels_stds
for i in range(test_labels.shape[0])]
norm_test_labels = np.array(norm_test_labels)

Expand Down

0 comments on commit 8503dec

Please sign in to comment.