Skip to content

Commit

Permalink
Merge pull request evanmy#2 from varunj/patch-1
Browse files Browse the repository at this point in the history
typo correction
  • Loading branch information
evanmy committed Apr 22, 2021
2 parents e6f67f4 + 68f26ff commit b2fe7c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/training_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def padder(input, kernel_size):

def normalize_dim1(x):
'''
Ensure that dim1 sums up to zero for proper probabilistic interpretation
Ensure that dim1 sums up to one for proper probabilistic interpretation
'''
normalizer = torch.sum(x, dim=1, keepdim=True)
return x/normalizer
Expand All @@ -122,4 +122,4 @@ def sequential(self):
return next(self.iterator)

def shuffle(self):
self.iterator = iter(sklearn.utils.shuffle(self.idx))
self.iterator = iter(sklearn.utils.shuffle(self.idx))

0 comments on commit b2fe7c4

Please sign in to comment.