-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
fe617ac
commit 3a7390e
Showing
6 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Documentation about bird_cloud_gnn""" | ||
|
||
import logging | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
"""Module for early stopping class | ||
""" | ||
|
||
import numpy as np | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,9 +126,9 @@ def to01(value): | |
point_cloud.loc[ | ||
np.random.randint(0, num_points, num_points // 100), "feat2" | ||
] = None | ||
point_cloud.loc[ | ||
np.random.randint(0, num_points, num_points // 20), "feat3" | ||
] = None | ||
point_cloud.loc[np.random.randint(0, num_points, num_points // 20), "feat3"] = ( | ||
Check notice Code scanning / SonarCloud numpy.random.Generator should be preferred to numpy.random.RandomState Low
Use a "numpy.random.Generator" here instead of this legacy function. See more on SonarCloud
|
||
None | ||
) | ||
|
||
if filename is not None: | ||
point_cloud.to_csv(filename, index=None) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Tests for gnn_model module""" | ||
|
||
import torch | ||
from dgl.dataloading import GraphDataLoader | ||
from torch import nn | ||
|