Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update logging, and fix the error in the usage example #131

Merged
merged 1 commit into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can also find a simple and quick-start tutorial notebook on Google Colab wit
n_layers=2,
d_model=256,
d_inner=128,
n_head=4,
n_heads=4,
d_k=64,
d_v=64,
dropout=0.1,
Expand Down
2 changes: 1 addition & 1 deletion pypots/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _setup_path(self, saving_path):
logger.info(f"Model files will be saved to {self.saving_path}")
logger.info(f"Tensorboard file will be saved to {tb_saving_path}")
else:
logger.info(
logger.warning(
"saving_path not given. Model files and tensorboard file will not be saved."
)

Expand Down
4 changes: 1 addition & 3 deletions pypots/utils/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,4 @@ def set_random_seed(random_seed: int = RANDOM_SEED) -> None:

np.random.seed(RANDOM_SEED)
torch.manual_seed(random_seed)
logger.info(
f"Done. Have already set the random seed as {random_seed} for numpy and pytorch."
)
logger.info(f"Have set the random seed as {random_seed} for numpy and pytorch.")