Git Product home page Git Product logo

Comments (7)

j-peetz avatar j-peetz commented on May 27, 2024 1

Ok great! Thanks again.

from cvnn.

NEGU93 avatar NEGU93 commented on May 27, 2024

Hello and thank you for your interest.
It is possible that the kernel_contraint is not implemented but the bias parameter should be working...
Could you confirm me which version of the library are you using? Could you try using the last version and see if the issue is solved?

from cvnn.

j-peetz avatar j-peetz commented on May 27, 2024

Thank you for the response. I updated from v1.0.0 (via conda) to v1.2.14 (via pip). Like you said, the bias feature is now working properly. However, the kernel constraint still seems to have no effect.

from cvnn.

NEGU93 avatar NEGU93 commented on May 27, 2024

Yes sorry, I need to update conda's version. I will do so next week.

Indeed, the kernel_constraint is not yet implemented.
I may add this feature in the future. I will let you know when (if) I do.

from cvnn.

NEGU93 avatar NEGU93 commented on May 27, 2024

I have been investigating about this. I could easily do:

  • A real-valued kernel_contraint that applies to both real and imaginary parts (but separately)
  • Two real-valued real_contraint and imag_contraint that applies to them separately.

This is a problem because it will prevent (I think) the idea of making a contraint on the phase or amplitude.
I understand that the ideal would be to be able to define a complex-valued contraint but that will require more work and I am not free.

Does this still work for you? If so, which feature do you think would be better suit for you?

from cvnn.

j-peetz avatar j-peetz commented on May 27, 2024

I think having two separate real_constraint and imag_constraint options would be especially useful.

In my specific application, I just needed to set certain weights to 0. And I actually made some modifications that worked for me here: master...j-peetz:master

But I only changed the ComplexDense class. And in general, it'd be nice to be able to specify separate real and imaginary constraints.

Thank you so much for being responsive! Having complex NNs opens up a lot of possibilities, and this library is super helpful.

from cvnn.

NEGU93 avatar NEGU93 commented on May 27, 2024

Congrats! I did a pull request of your code.
I leave this issue open as feature requests of:

  • Add Bias contraint
  • Add constrain to other layers (such as Conv)
  • Add separate real_constraint and imag_constraint
  • Best case scenario as complex_constraint. Related to issue 56217

from cvnn.

Related Issues (20)

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.