Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
Huan He committed Feb 6, 2023
1 parent 7e619c8 commit 07fa473
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 240 deletions.
4 changes: 2 additions & 2 deletions algorithms/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
codats_classifier, AdvSKM_Disc
from models.loss import MMD_loss, CORAL, ConditionalEntropyLoss, VAT, LMMD_loss, HoMM_loss
from models.augmentations import jitter, scaling, permutation

from torch.optim import SGD

def get_algorithm_class(algorithm_name):
"""Return the algorithm class with the given name."""
Expand Down Expand Up @@ -298,7 +298,7 @@ def update(self, src_x, src_y, trg_x, step, epoch, len_train_source, len_train_t
'open_src_neg_loss': open_loss_neg.item(),
'open_trg_loss': ent_open.item()
}

class AdaMatch(Algorithm):
"""
AdaMatch https://arxiv.org/abs/2106.04732
Expand Down
77 changes: 0 additions & 77 deletions configs/sweep_params.py

This file was deleted.

4 changes: 2 additions & 2 deletions main_uni.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

# ======== Experiments Name ================
parser.add_argument('--save_dir', default='experiments_logs', type=str, help='Directory containing all experiments')
parser.add_argument('--experiment_description', default='WISDM-TFAC-uni', type=str, help='Name of your experiment (EEG, HAR, HHAR_SA, ')
parser.add_argument('--experiment_description', default='WISDM-RAINCOAT-uni', type=str, help='Name of your experiment (EEG, HAR, HHAR_SA, ')
# ========= Select the DA methods ============
parser.add_argument('--da_method', default='TFAC', type=str, help='DANCE, TFAC')
parser.add_argument('--da_method', default='RAINCOAT', type=str, help='DANCE, TFAC')
# ========= Select the DATASET ==============
parser.add_argument('--data_path', default=r'./data', type=str, help='Path containing dataset')
parser.add_argument('--dataset', default='WISDM', type=str, help='Dataset of choice: (WISDM - EEG - HAR - HHAR_SA, Boiler)')
Expand Down
4 changes: 0 additions & 4 deletions models/sinkhorn_vis.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 18 00:46:57 2022

@author: Huan
"""

import matplotlib.pyplot as plt
import seaborn as sns
Expand Down
7 changes: 0 additions & 7 deletions models/utlis.py

This file was deleted.

148 changes: 0 additions & 148 deletions plot_result.ipynb

This file was deleted.

0 comments on commit 07fa473

Please sign in to comment.