Skip to content

Commit

Permalink
Fix deprecated np.long cast
Browse files Browse the repository at this point in the history
  • Loading branch information
seldauyanik-maxim committed Dec 10, 2024
1 parent 0fa1fb1 commit 802d98e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion datasets/cbm_dataframe_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def __getitem__(self, index):
lbl = self.transform(lbl)

if not self.label_as_signal:
lbl = lbl.astype(np.long)
lbl = lbl.astype(np.int64)
else:
lbl = lbl.numpy().astype(np.float32)

Expand Down
4 changes: 0 additions & 4 deletions utils/autoencoder_eval_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
from torch import nn

import matplotlib.pyplot as plt
import seaborn as sns

sns.set_style("white")


DECAY_FACTOR = 1

Expand Down

0 comments on commit 802d98e

Please sign in to comment.