Code Monkey home page Code Monkey logo

Comments (5)

NEGU93 avatar NEGU93 commented on May 26, 2024

Dear @SantaTitular,

First of all, thank you for using my library and your interest in my work. It is really appreciated.

I believe the issue is that the output activation function (linear) just outputs a complex number, however, categorical cross-entropy is only defined for real numbers. Here you have 2 options:

  1. Use an activation function that although receiving a complex number outputs a real one. Documentation here
  2. Or use a loss function that supports complex numbers. Currently I only implemented one of those and it's here

Hope it helps! let me know if the issue is solved.

from cvnn.

SantaTitular avatar SantaTitular commented on May 26, 2024

Dead @NEGU93 ,

Thanks alot for the response!

Although I did manage to run the code, my problem was the implementation of the library in the anaconda environment. For instance, I replicated the example that you mentioned here, and I got several module errors (e.g., ModuleNotFoundError: No module named 'cvnn.losses' ). Afterwards I just imported the cvnn library (which I installed with conda install -c negu93 cvnn ) and I only have the following modules:

image

Do you think that this might be an environment issue or an incompatibility with some version of spyder, tensorflow, numpy, etc.? I tried reinstalling and ran into several conflicts between libraries and still could not have some of the modules. Am I doing anything wrong?

Thanks in advance!

from cvnn.

NEGU93 avatar NEGU93 commented on May 26, 2024

Conda version is outdated and does not have the losses module. I recommend you install cvnn with pip (within the conda environment, there is no problem with that).

from cvnn.

SantaTitular avatar SantaTitular commented on May 26, 2024

All your suggestions worked wonderfully, thank you so much, your library will be a tremendous help!

Edit: Feel free to close the thread!

from cvnn.

NEGU93 avatar NEGU93 commented on May 26, 2024

Great! I'm very glad I could help. I will then close the issue.

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.