Skip to content

Commit 3a7390e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fe617ac commit 3a7390e

File tree

6 files changed

+8
-3
lines changed

6 files changed

+8
-3
lines changed

bird_cloud_gnn/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Documentation about bird_cloud_gnn"""
2+
23
import logging
34

45

bird_cloud_gnn/cross_validation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Helper functions for cross validation.
22
"""
3+
34
import numpy as np
45
import pandas as pd
56
from dgl.dataloading import GraphDataLoader

bird_cloud_gnn/early_stopper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Module for early stopping class
22
"""
3+
34
import numpy as np
45

56

bird_cloud_gnn/fake.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ def to01(value):
126126
point_cloud.loc[
127127
np.random.randint(0, num_points, num_points // 100), "feat2"
128128
] = None
129-
point_cloud.loc[
130-
np.random.randint(0, num_points, num_points // 20), "feat3"
131-
] = None
129+
point_cloud.loc[np.random.randint(0, num_points, num_points // 20), "feat3"] = (
130+
None
131+
)
132132

133133
if filename is not None:
134134
point_cloud.to_csv(filename, index=None)

tests/test_cross_validation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for cross_validation"""
2+
23
from torch import nn
34
from bird_cloud_gnn.cross_validation import kfold_evaluate
45
from bird_cloud_gnn.cross_validation import leave_one_origin_out_evaluate

tests/test_gnn_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for gnn_model module"""
2+
23
import torch
34
from dgl.dataloading import GraphDataLoader
45
from torch import nn

0 commit comments

Comments
 (0)