Giter Club home page Giter Club logo

Comments (2)

fonnesbeck avatar fonnesbeck commented on June 14, 2024

I dealt with the IndexError (commit 9988ebb), but the gradient assertion does not appear to fare well:

======================================================================
FAIL: test_gradients (pymc.tests.test_gradients.test_gradients)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/fonnescj/Code/pymc/pymc/tests/test_gradients.py", line 291, in test_gradients
    check_gradients(gamma)
  File "/Users/fonnescj/Code/pymc/pymc/tests/test_gradients.py", line 112, in check_gradients
    " is not correct.")
  File "/Library/Python/2.7/site-packages/numpy-2.0.0.dev_730b861_20110815-py2.7-macosx-10.7-x86_64.egg/numpy/testing/utils.py", line 799, in assert_array_almost_equal
    header=('Arrays are not almost equal to %d decimals' % decimal))
  File "/Library/Python/2.7/site-packages/numpy-2.0.0.dev_730b861_20110815-py2.7-macosx-10.7-x86_64.egg/numpy/testing/utils.py", line 635, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 4 decimals
analytic gradient for gamma with respect to parameter a is not correct.
(mismatch 100.0%)
 x: array([-0.96673602, -1.41302081, -2.3154314 , -2.84824608, -1.73328374])
 y: array([-0.54395252, -0.99024297, -1.89264995, -2.42546566, -1.31050626])

from pymc.

fonnesbeck avatar fonnesbeck commented on June 14, 2024

This error seems to have gone away.

from pymc.

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.