GithubHelp home page GithubHelp logo

deep_laa's Introduction

deep_laa

Files and datasets

Run laa-s.py (according to LAA-B) or laa_z_y.py (according to LAA-O and LAA-L).

Three datasets are available: Bluebirds (bluebird_data.npz), Flowers (flower_data.npz), and Web Search (web_processed_data_feature_2.npz). You can uncomment the filename to select the corresponding dataset.

Key model parameters are:

laa-s.py:

loss_classifier = loss_classifier_y_x \
     + 0.0001 * loss_y_kl \
     + 0.005/source_num/category_size/category_size * loss_w_classifier_l1
...
learning_rate = 0.005

laa_z_y.py:

n_z = 1 # number of latent aspects
...
loss_classifier = loss_classifier_y_x \
     + 0.0001*loss_y_kl \
     + 0.005/source_num/category_size/category_size * (loss_w_classifier_l1 + loss_b_classifier_l1 + loss_w_decoder_l1 + loss_b_decoder_l1) \
     + 0.5/source_num/n_z/n_z * (loss_z_weights_l2 + loss_z_biases_l2)
...
learning_rate = 0.01

Recommended parameters (for laa_z_y.py)

Bluebirds:

n_z = 2
...
loss_classifier = loss_classifier_y_x \
     + 0.0001*loss_y_kl \
     + 0.005/source_num/category_size/category_size * (loss_w_classifier_l1 + loss_b_classifier_l1 + loss_w_decoder_l1 + loss_b_decoder_l1) \
     + 0.5/source_num/n_z/n_z * (loss_z_weights_l2 + loss_z_biases_l2)
...
learning_rate = 0.01

Flowers:

n_z = 2
...
loss_classifier = loss_classifier_y_x \
     + 0.0001*loss_y_kl \
     + 0.05/source_num/category_size/category_size * (loss_w_classifier_l1 + loss_b_classifier_l1 + loss_w_decoder_l1 + loss_b_decoder_l1) \
     + 0.1/source_num/n_z/n_z * (loss_z_weights_l2 + loss_z_biases_l2)
...
learning_rate = 0.001

Web Search:

n_z = 1
...
loss_classifier = loss_classifier_y_x \
     + 0.0001*loss_y_kl \
     + 0.005/source_num/category_size/category_size * (loss_w_classifier_l1 + loss_b_classifier_l1 + loss_w_decoder_l1 + loss_b_decoder_l1) \
     + 0.5/source_num/n_z/n_z * (loss_z_weights_l2 + loss_z_biases_l2)
...
learning_rate = 0.01

deep_laa's People

Contributors

coverdark avatar hanjianhua44 avatar

Watchers

James Cloos 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.