Coder Social home page Coder Social logo

audio-mps's People

Contributors

austenlamacraft avatar mencia avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mencia

audio-mps's Issues

model.py suggestions.

@mencia

  • In the loss
               self.r_reg * tf.real(tf.reduce_sum(tf.conj(self.R)*self.R))

Why reduce_mean rather than reduce_sum? You are choosing the relative weight of the main loss and the regularization. Taking the view that the whole thing is is a log probability suggests to me that it should be reduce_mean. What do you think?

  • Line 158. num_samples = tf.size(signal). It looks to me like tf.size gives the total number of elements, whereas you want the batch size signal.shape[0].

  • Line 159 and 163. Are you sure this tile and reshape is right? Did you check it? I think tf.stack is what you want here, as that adds an index.

  • Line 152. tf.log(self._expectation_rho(rho)). Why isn't this tf.log(tf.trace(rho))?

Smaller things:

  1. Lines 25-39. Are all the ifs necessary? You supply the matrix as an initializer. If it's None, it does nothing.

  2. [self.rank_rho_0, self.bond_d] is the same as 2*[self.rank_rho_0]

  3. self.W, self.Wx, self.Wy are not used for anything, only to build self.rho_0. Put them in another method, say _init_rho_0.

  4. Line 173. In exp = tf.trace(tf.einsum('ab,cbd->cad', x, rho)) the tf.trace is redundant. Do it all with einsum.

  5. _inc_loss_rho doesn't use signal argument (PyCharm would tell you that!).

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.