From a7547933f47e94d5ad99a2fb67c72c77e68fab14 Mon Sep 17 00:00:00 2001 From: jsalvatier Date: Fri, 28 Jan 2011 14:34:30 -0800 Subject: [PATCH] explanations for why no exponweib gradients --- pymc/distributions.py | 1 + pymc/tests/test_gradients.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pymc/distributions.py b/pymc/distributions.py index 9cf6b00288..efe36d90cf 100755 --- a/pymc/distributions.py +++ b/pymc/distributions.py @@ -1160,6 +1160,7 @@ def exponweib_like(x, alpha, k, loc=0, scale=1): """ return flib.exponweib(x,alpha,k,loc,scale) """ +commented out because tests fail exponweib_grad_like = {'value' : flib.exponweib_gx, 'alpha' : flib.exponweib_ga, 'k' : flib.exponweib_gk, diff --git a/pymc/tests/test_gradients.py b/pymc/tests/test_gradients.py index edcecaa80e..f4643c3213 100644 --- a/pymc/tests/test_gradients.py +++ b/pymc/tests/test_gradients.py @@ -356,6 +356,7 @@ def test_gradients(self): negative_binomial = NegativeBinomial('negative_binomial', mu = c, alpha = d ) check_gradients(negative_binomial) + #exponweib still not working for unknown reasons #exponweib = Exponweib('exponweib', alpha = c, k =d , loc = a, scale = e ) #check_gradients(exponweib)