Git Product home page Git Product logo

Comments (8)

real-zhangzhe avatar real-zhangzhe commented on May 23, 2024

And numpy-ml/numpy_ml/neural_nets/wrappers/wrappers.py Line 207:

your code

def backward(self, dLdy, retain_grads):
"""
retain_grads: Default is True
"""

Your code is missing the default value, resulting in an error at numpy-ml/numpy_ml/neural_nets/layers/layers.py Line 332.

from numpy-ml.

real-zhangzhe avatar real-zhangzhe commented on May 23, 2024

And numpy-ml/numpy_ml/neural_nets/layers/layers.py Line 2116:

your code

def backward(self, dLdy):
"""
retain_grads: Default is True
"""

The function in your code is missing an argument retain_grads, resulting in an error at numpy-ml/numpy_ml/neural_nets/wrappers/wrappers.py Line 227.

from numpy-ml.

real-zhangzhe avatar real-zhangzhe commented on May 23, 2024

Maybe I should fork and create pull request 😃

from numpy-ml.

real-zhangzhe avatar real-zhangzhe commented on May 23, 2024

And numpy-ml/numpy_ml/neural_nets/tests/tests.py line 510:

your code

from ..activations import Softmax

but

Softmax is not implemented in ..activations, but in ..layers.

right code

  • line 510:
from ..layers import Softmax

  • line 527:
y_pred = sm.forward(z)

from numpy-ml.

real-zhangzhe avatar real-zhangzhe commented on May 23, 2024

And numpy-ml/numpy_ml/neural_nets/tests/tests.py line 771:
your code

from ..activations import SoftSign

but SoftSign is not implemented in ..activations.

maybe you should delete function test_softsign_grad and test_softsign_activation.

from numpy-ml.

ddbourgin avatar ddbourgin commented on May 23, 2024

@Z-zhe - Wow, thanks so much for all these! I haven't had a chance to take a look yet, but should have some time this weekend. In the meantime if you feel like submitting a PR with fixes I'd be happy to review it, otherwise I can try to address these shortly.

from numpy-ml.

real-zhangzhe avatar real-zhangzhe commented on May 23, 2024

PR is complicated, it is easier for you to modify. 😃

from numpy-ml.

real-zhangzhe avatar real-zhangzhe commented on May 23, 2024

numpy-ml/numpy_ml/neural_nets/layers/layers.py line 2341:

your code

dX = dZ @ W.T

I don't think it should be W it should be W_sparse. So I think right code should be:

dX = dZ @ W_sparse.T

Please reconsider,thanks.

from numpy-ml.

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.