Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsKue committed Dec 26, 2023
1 parent 0d1b642 commit bab5d98
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/losses/mmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def mmd_loss(samples: Tensor, target: Tensor, kernel=gaussian_kernel, scales: Te
Returns
-------
mmd: Maximum-Mean-Discrepancy between data and code. Tensor of shape ()
mmd: Maximum-Mean-Discrepancy between data and code. Tensor of shape (N,)
"""
if scales == "auto":
scales = torch.logspace(-6, 6, 13)
Expand Down
1 change: 0 additions & 1 deletion src/visualization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


from .multiscatter import multiscatter, multiscatter_bp
from .rainbow import Rainbow
from .scatter import scatter, scatter_bp
2 changes: 1 addition & 1 deletion src/visualization/multiscatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ def multiscatter_bp(samples: np.ndarray, layout: (int, int), **render_kwargs):

plt.subplots_adjust(left=0.0, right=1.0, bottom=0.0, top=1.0, wspace=0.0, hspace=0.0)

return fig
return fig
8 changes: 0 additions & 8 deletions src/visualization/rainbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,3 @@ def __call__(self, X, alpha=None, bytes=False):
rgba = np.concatenate([rgb, alpha], axis=1)

return rgba


r, g, b = 1, 1, 1

m = max(r, g, b)



0 comments on commit bab5d98

Please sign in to comment.