Skip to content

Commit

Permalink
pflake8
Browse files Browse the repository at this point in the history
  • Loading branch information
oh-yu committed Jun 10, 2024
1 parent 780c08b commit 0efa437
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions algo/coral_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from torch import nn

from ..utils import utils
from .algo_utils import get_psuedo_label_weights, get_terminal_weights
from .algo_utils import get_psuedo_label_weights


def get_MSE(x, y):
Expand All @@ -28,7 +28,6 @@ def fit(data, network, **kwargs):

feature_extractor = network["feature_extractor"]
task_classifier = network["task_classifier"]
criterion = network["criterion"]
task_optimizer = network["task_optimizer"]
feature_optimizer = network["feature_optimizer"]

Expand Down
2 changes: 1 addition & 1 deletion algo/dann_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def fit(data, network, **kwargs):
config["is_class_weights"],
config["is_psuedo_weights"],
)
do_plot, do_print = config["do_plot"], config["do_print"]
do_plot, _ = config["do_plot"], config["do_print"]
device = config["device"]
is_changing_lr, epoch_thr_for_changing_lr, changed_lrs = (
config["is_changing_lr"],
Expand Down
1 change: 0 additions & 1 deletion networks/codats.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from ..algo import coral_algo, dann_algo
from .conv1d_three_layers import Conv1dThreeLayers
from .conv1d_two_layers import Conv1dTwoLayers
from .mlp_decoder_one_layer import OneLayerDecoder
from .mlp_decoder_three_layers import ThreeLayersDecoder

DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
Expand Down
1 change: 0 additions & 1 deletion networks/codats_fc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from ..utils import utils
from .conv1d_three_layers import Conv1dThreeLayers
from .conv1d_two_layers import Conv1dTwoLayers
from .mlp_decoder_one_layer import OneLayerDecoder
from .mlp_decoder_three_layers import ThreeLayersDecoder

DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
Expand Down
1 change: 0 additions & 1 deletion networks/isih_DA.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from .conv1d_three_layers import Conv1dThreeLayers
from .conv1d_two_layers import Conv1dTwoLayers
from .conv2d import Conv2d
from .mlp_decoder_one_layer import OneLayerDecoder
from .mlp_decoder_three_layers import ThreeLayersDecoder

DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
Expand Down

0 comments on commit 0efa437

Please sign in to comment.