Giter Club home page Giter Club logo

minimal-entropy-correlation-alignment's Introduction

๐Ÿ‘‹ Hi, Iโ€™m @pmorerio

minimal-entropy-correlation-alignment's People

Contributors

pmorerio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

minimal-entropy-correlation-alignment's Issues

using log_coral_loss with large activation

Hello, @pmorerio

Thank you for your nice work!

I got a question about calculating log_coral_loss.

Let say, activation after conv_layer is the size of [20, 256, 200, 176] (N, H, W, C respectively), it is too big to flatten and calculate the covariance matrix.

In this case, what can be a good solution?
(1x1 convolution and 2d_maxpool would work properly...?)
Do you have a similar experience?

Any advice and comments are welcome!

Thank you in advance.

eigen value of cov matrix

Hello, @pmorerio

I got another question about the eigenvalue of cov_matrix.

As far as I understood from your paper, cov_representation is positive definite, therefore
taking a logarithm on the eigenvalues makes sense.

However, when I decompose my covariance matrices I got some negative eigenvalues which result in nan logarithm values.

  1. Is this expected behavior?

  2. If so, coral_loss can perform as well as log_coral_loss?

I am afraid that I miss some part of your paper.
Any comments are welcome!!

Best,
Yoo

SVHN โ†’ MNIST Architecture

In your paper you mentioned that "The architecture is the very same employed in [Ganin & Lempitsky (2015)] with the only difference that the last fully connected layer (fc2) has only 64 units instead of 2048. Performances are the same, but covariance computation is less onerous. fc2 is in fact the layer where domain adaptation i performed." But in your code I found that (may be I am wrong), fc2 has 128 units. Can you please explain here a little bit more to understand me please?
hidden_size = 128
self.hidden_repr_size = hidden_size

net = slim.fully_connected(net, self.hidden_repr_size, activation_fn=tf.tanh,scope='fc4')

Accuracy is lower than the paper.

Hi ! I have re-run your code and got 90% accuracy for both log-d-coral and d-coral. Is there any missing in the code ? I just use following command:
for log-d-coral:
python main.py --mode='train' --method='log-d-coral' --alpha=1. --device='/gpu:0'
python main.py --mode='test' --method='log-d-coral' --alpha=1. --device='/gpu:0'

for d-coral:
python main.py --mode='train' --method='d-coral' --alpha=1. --device='/gpu:0'
python main.py --mode='test' --method='d-coral' --alpha=1. --device='/gpu:0'

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.