Permalink
Browse files

TST: Increase samples.

  • Loading branch information...
1 parent 6794485 commit e5298cf4be406113c136d41ac51b5e7143bcc827 @twiecki twiecki committed Feb 3, 2014
Showing with 66 additions and 62 deletions.
  1. +1 −1 hddm/tests/test_models.py
  2. +3 −1 hddm/utils.py
  3. +15 −12 src/cdfdif_wrapper.c
  4. +15 −12 src/lba.c
  5. +32 −36 src/wfpt.c
@@ -341,7 +341,7 @@ def test_posterior_plots_breakdown():
params = hddm.generate.gen_rand_params()
data, params_subj = hddm.generate.gen_rand_data(params=params, subjs=4)
m = hddm.HDDM(data)
- m.sample(100, burn=10)
+ m.sample(2000, burn=10)
m.plot_posterior_predictive()
m.plot_posterior_quantiles()
m.plot_posteriors()
View
@@ -475,7 +475,7 @@ def create_test_model(samples=5000, burn=1000, subjs=1, size=100):
def pretty_tag(tag):
return tag[0] if len(tag) == 1 else string.join(tag, ', ')
-def qp_plot(x, groupby=None, quantiles=(0.1, 0.3, 0.5, 0.7, 0.9), ncols=None, draw_lines=True):
+def qp_plot(x, groupby=None, quantiles=(0.1, 0.3, 0.5, 0.7, 0.9), ncols=None, draw_lines=True, ax=None):
"""
qp plot
Input:
@@ -532,6 +532,8 @@ def qp_plot(x, groupby=None, quantiles=(0.1, 0.3, 0.5, 0.7, 0.9), ncols=None, dr
_points_to_qp_plot(points, p, ax, draw_lines)
+ return ax
+
#create axes for subjects
n_subjs = len(data.subj_idx.unique())
if ncols is None:
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit e5298cf

Please sign in to comment.