Skip to content

Commit

Permalink
Formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
atong01 committed Feb 8, 2024
1 parent 9f1dcf2 commit f25e8d3
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 666 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,6 @@ configs/local/default.yaml

# Aim logging
.aim

# vim
*.sw?
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ repos:
args:
[
--verbose,
--fail-under=80,
--fail-under=20,
--ignore-init-module,
--ignore-init-method,
--ignore-module,
Expand All @@ -77,7 +77,7 @@ repos:
args:
[
"--extend-ignore",
"E203,E402,E501,F401,F841,RST2,RST301",
"E203,E402,E501,F401,F841,RST2,RST301,E741",
"--exclude",
"logs/*,data/*",
]
Expand Down
201 changes: 0 additions & 201 deletions dem/data/mnist_datamodule.py

This file was deleted.

4 changes: 2 additions & 2 deletions dem/energies/base_energy_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def normalize(self, x: torch.Tensor) -> torch.Tensor:
mins = self.normalization_min
maxs = self.normalization_max

## [ 0, 1 ]
# [ 0, 1 ]
x = (x - mins) / (maxs - mins + 1e-5)
## [ -1, 1 ]
# [ -1, 1 ]
return x * 2 - 1

def unnormalize(self, x: torch.Tensor) -> torch.Tensor:
Expand Down
Loading

0 comments on commit f25e8d3

Please sign in to comment.