Giter Club home page Giter Club logo

dage's Introduction

Domain Adaption using Graph Embedding (DAGE)

This repository supplies an implementation of a the supervised domain adaptation method Domain Adaptation using Graph Embedding (DAGE).

We additionally provide implementations of the following baseline transfer learning and domain adaptation methods:

  • Fine tuning using gradual unfreeze
  • CCSA
  • d-SNE

Datasets and abbreviation

Experiments Datasets
Office-31 AMAZON (A), DSLR (D), and WEBCAM (W)
MNIST -> USPS MNIST (M), USPS (U)

Setup

Install dependencies

$ conda env create --file environment.yml
$ conda activate dage

Download datasets

$ ./scripts/get_office.sh
$ ./scripts/get_digits.sh

Running the code

run.py is the entry-point for running the implemented methods. To retreive a list of valid arguments, use python run.py --help.

A number of ready-to-run scripts are supplied (found in the scripts folder), with which one can test different methods and configurations.

An example which tunes a model on source data, and tests on target data is

$ ./scripts/office31_tune_source.sh

Running DAGE of Office31 with tuned hyperparameters using the revised training splits is acheived by using.

$ ./scripts/office31_dage_lda_tuned_vgg16_v2.sh

Note: The experiments were run on two separate occations. The first time was using the standard approach used in much domain adaptation literature. The second time (the accompaning scripts are postfixed with "_v2") the revised data splits were used to ensure generaliseability of the results.

Hyper-parameter optimisation

A separate python entry-point hypersearch.py can be used to perform a hyper-parameter search using Bayesian Optimisation. Script are also supplied for performing a hyperparameter optimisation

$ ./scripts/office31_hypersearch.sh

Results

A number of notebooks are supplied, in which one can visualise the Office-31 data, see the results of our experiments and the conducted hyper-parameter search.

Authors

dage's People

Contributors

dependabot[bot] avatar lukasbiir avatar lukashedegaard avatar

Watchers

 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.