Giter Club home page Giter Club logo

cwan's Introduction

CWAN

Multi-source Heterogeneous Domain Adaptation with Conditional Weighting Adversarial Network

Running Environment

Prerequisites

  • python 3.6
  • tensorflow-gpu 1.4
  • CUDA 8.0
  • cudnn 6.0
  • numpy
  • scipy
  • matplotlib
  • scikit_learn

Step-by-step Installation

$ conda create -n cwan python=3.6
$ conda activate cwan

$ pip install tensorflow-gpu==1.4
$ conda install cudatoolkit=8.0
$ conda install cudnn=6.0
$ conda install scipy
$ conda install matplotlib
$ conda install scikit-learn
$ conda install matplotlib

Datasets

You can download the example dataset from here (Password: 8i7c), and put in the folder of datasets.

All of the datasets can be downloaded from here (Password: 4y1q).

Running

  1. You can run this code by inputing:
python -W ignore main.py

The results should be close to 59.67 (A (D_{4096}), D (R_{2048}) -> W (S_{800})). Note that different environmental outputs may be different.

  1. You can use your datasets by replacing:
source_exp = [ad.SAD, ad.SDR]
target_exp = [ad.TWS]
  1. You can tune the parameters, i.e., lr_1 (learning rate for g(\dot), f(\dot)), lr_2 (learning rate for d(\dot)), T, d, beta, tau, for different applications.

  2. The default parameters are: lr_1 = 0.004, lr_2 = 0.001, T = 500, d = 256, beta = 0.03, tau = 0.004.

Citation

If you find this helpful, please cite:

@article{DBLP:journals/corr/abs-2008-02714,
  author    = {Yuan Yao and
               Xutao Li and
               Yu Zhang and
               Yunming Ye},
  title     = {Multi-source Heterogeneous Domain Adaptation with Conditional Weighting
               Adversarial Network},
  journal   = {CoRR},
  volume    = {abs/2008.02714},
  year      = {2020},
  url       = {https://arxiv.org/abs/2008.02714},
  archivePrefix = {arXiv},
}

cwan's People

Contributors

yyyaoyuan avatar

Stargazers

Prince Osei Aboagye avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.