Giter VIP home page Giter VIP logo

elixir's Introduction

  • Hi, I'm @yash-srivastava19. I'm a machine learning research enthusiast, with a particular interest in Natural Language Processing, Data Science, and Artificial Intelligence in general.

  • I strongly belive in learning with collaboration, so if you want to improve upon some of my project, just ping me.

  • How to reach me : - Mail ID, Kaggle, Website

snake gif

elixir's People

Contributors

kapi2910 avatar yash-srivastava19 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kapi2910

elixir's Issues

Redefine the power operator(**) in `Complex` class

The current definition of the power (**) operator does not work because of the following line:

for _ in range(other):
Since other (which is a complex number) is not countable, this line will throw an error.

When raising one complex number to the power of another complex number the use of polar coordinates will make our work easier.

Does the Complex Gradient makes sense?

In the complex_engine.py file, I've implemented the gradient as a complex number, treating the real and imaginary parts as separate entities, but have not find an explanation whether I am correct or not. Any help on this would be really awesome. After that, we can move on to write some tests and check whether it makes sense or not.

  • Understand the gradient terminology. See of this as a more general version of the real number.
  • Once this is understood, work on some tests and check the validity.

Include a case for `ComplexValue` in the definition of multiplication operator of `Complex` class

The ComplexValue class converts any Complex object into ComplexValue when multiplying. But when multiplying ComplexValue with Complex, the following exception is met:

"Can't do that bro."

The reason for this is that the Complex class does not allow multiplication with any other class type. That is, the case of Complex being multiplied with ComplexValue is not handled in the definition of Complex class. Hence, an exception is raised.
compare the multiplication definitions in both classes for reference

To recreate the problem, run the code snippet below

z1 = Complex(1, 2)
z2 = ComplexValue(Complex(1, 0))

c = z1 * z2 
print(c)

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.